about summary refs log tree commit diff
path: root/tests/ui/const-generics/adt_const_params/index-oob-ice-83993.stderr
blob: b7e459511f15c39d253881b9f4bef960543f41af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: generic parameters may not be used in const operations
  --> $DIR/index-oob-ice-83993.rs:8:17
   |
LL |         let x: &'b ();
   |                 ^^ cannot perform const operation using `'b`
   |
   = note: lifetime parameters may not be used in const expressions
   = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions

error: generic parameters may not be used in const operations
  --> $DIR/index-oob-ice-83993.rs:18:17
   |
LL |         let _: &'b ();
   |                 ^^ cannot perform const operation using `'b`
   |
   = note: lifetime parameters may not be used in const expressions
   = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions

error: aborting due to 2 previous errors