fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `'_` cannot be used here 2 --> $DIR/assoc-const-elided-lifetime.rs:10:20 3 | 4LL | const FOO: Foo<'_> = Foo { x: PhantomData::<&()> }; 5 | ^^ 6 | 7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 8 = note: for more information, see issue #115010 <https://github.com/rust-lang/rust/issues/115010> 9note: the lint level is defined here 10 --> $DIR/assoc-const-elided-lifetime.rs:1:9 11 | 12LL | #![deny(elided_lifetimes_in_associated_constant)] 13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14help: use the `'static` lifetime 15 | 16LL | const FOO: Foo<'static> = Foo { x: PhantomData::<&()> }; 17 | ~~~~~~~ 18 19error: `&` without an explicit lifetime name cannot be used here 20 --> $DIR/assoc-const-elided-lifetime.rs:14:16 21 | 22LL | const BAR: &() = &(); 23 | ^ 24 | 25 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 26 = note: for more information, see issue #115010 <https://github.com/rust-lang/rust/issues/115010> 27help: use the `'static` lifetime 28 | 29LL | const BAR: &'static () = &(); 30 | +++++++ 31 32error: aborting due to 2 previous errors 33