diff --git a/rust-version b/rust-version index 0c7f469221..b265e00095 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -nightly-2019-01-30 +nightly-2019-02-13 diff --git a/tests/run-pass/format.rs b/tests/run-pass/format.rs index 78729b9156..053cce3613 100644 --- a/tests/run-pass/format.rs +++ b/tests/run-pass/format.rs @@ -1,3 +1,4 @@ fn main() { println!("Hello {}", 13); + println!("{:0<width$}", "hello", width = 10); } diff --git a/tests/run-pass/format.stdout b/tests/run-pass/format.stdout index e193b8ae89..3c9a55d0d4 100644 --- a/tests/run-pass/format.stdout +++ b/tests/run-pass/format.stdout @@ -1 +1,2 @@ Hello 13 +hello00000 diff --git a/tests/run-pass/function_pointers.rs b/tests/run-pass/function_pointers.rs index cc888630d3..26a2d5a6c2 100644 --- a/tests/run-pass/function_pointers.rs +++ b/tests/run-pass/function_pointers.rs @@ -1,5 +1,16 @@ -fn f() -> i32 { - 42 +trait Answer { + fn answer() -> Self; +} + +impl Answer for i32 { + fn answer() -> i32 { + 42 + } +} + +// A generic function, to make its address unstable +fn f<T: Answer>() -> T { + Answer::answer() } fn g(i: i32) -> i32 {