about summary refs log tree commit diff
path: root/tests/ui/suggestions/missing-lifetime-in-assoc-const-type.default.stderr
blob: 71ac55bf044837a9d499ca07b984f9f13d4a78f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error[E0726]: implicit elided lifetime not allowed here
  --> $DIR/missing-lifetime-in-assoc-const-type.rs:7:14
   |
LL |     const B: S = S { s: &() };
   |              ^ expected lifetime parameter
   |
help: indicate the anonymous lifetime
   |
LL |     const B: S<'_> = S { s: &() };
   |               ++++

error[E0726]: implicit elided lifetime not allowed here
  --> $DIR/missing-lifetime-in-assoc-const-type.rs:9:14
   |
LL |     const D: T = T { a: &(), b: &() };
   |              ^ expected lifetime parameters
   |
help: indicate the anonymous lifetimes
   |
LL |     const D: T<'_, '_> = T { a: &(), b: &() };
   |               ++++++++

error: aborting due to 2 previous errors

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