fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: generic parameters may not be used in const operations 2 --> $DIR/forbid-non-static-lifetimes.rs:7:22 3 | 4LL | test::<{ let _: &'a (); 3 },>(); 5 | ^^ cannot perform const operation using `'a` 6 | 7 = note: lifetime parameters may not be used in const expressions 8 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 9 10error: generic parameters may not be used in const operations 11 --> $DIR/forbid-non-static-lifetimes.rs:21:16 12 | 13LL | [(); (|_: &'a u8| (), 0).1]; 14 | ^^ cannot perform const operation using `'a` 15 | 16 = note: lifetime parameters may not be used in const expressions 17 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 18 19error: aborting due to 2 previous errors 20