about summary refs log tree commit diff
path: root/tests/ui/impl-trait/upvar_captures.stderr
blob: b87a16606cc55693e8c1db68b41cbbc8eb576e23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0106]: missing lifetime specifier
  --> $DIR/upvar_captures.rs:11:18
   |
LL |     pub struct C(&());
   |                  ^ expected named lifetime parameter
   |
help: consider introducing a named lifetime parameter
   |
LL |     pub struct C<'a>(&'a ());
   |                 ++++  ++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0106`.