fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0637]: `&` without an explicit lifetime name cannot be used here 2 --> $DIR/elided-lifetimes.rs:8:5 3 | 4LL | &T: Copy; 5 | ^ explicit lifetime name needed here 6 | 7help: consider introducing a higher-ranked lifetime here 8 | 9LL | for<'a> &'a T: Copy; 10 | +++++++ ++ 11 12error[E0637]: `&` without an explicit lifetime name cannot be used here 13 --> $DIR/elided-lifetimes.rs:10:18 14 | 15LL | const I<const S: &str>: &str = ""; 16 | ^ explicit lifetime name needed here 17 18error[E0637]: `'_` cannot be used here 19 --> $DIR/elided-lifetimes.rs:14:18 20 | 21LL | const B<T: Trait<'_>>: () = (); 22 | ^^ `'_` is a reserved lifetime name 23 24error: `&str` is forbidden as the type of a const generic parameter 25 --> $DIR/elided-lifetimes.rs:10:18 26 | 27LL | const I<const S: &str>: &str = ""; 28 | ^^^^ 29 | 30 = note: the only supported types are integers, `bool` and `char` 31 = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types 32 33error: aborting due to 4 previous errors 34 35For more information about this error, try `rustc --explain E0637`.