rust/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr

18 lines
648 B
Plaintext
Raw Normal View History

error[E0310]: the parameter type `U` may not live long enough
2018-12-25 09:56:47 -06:00
--> $DIR/dont-infer-static.rs:10:5
|
LL | struct Foo<U> {
| - help: consider adding an explicit lifetime bound `U: 'static`...
2018-12-25 09:56:47 -06:00
LL | bar: Bar<U> //~ ERROR the parameter type `U` may not live long enough [E0310]
| ^^^^^^^^^^^
|
note: ...so that the type `U` will meet its required lifetime bounds
2018-12-25 09:56:47 -06:00
--> $DIR/dont-infer-static.rs:10:5
|
2018-12-25 09:56:47 -06:00
LL | bar: Bar<U> //~ ERROR the parameter type `U` may not live long enough [E0310]
| ^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0310`.