]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / rfc-2093-infer-outlives / dont-infer-static.stderr
CommitLineData
8faf50e0 1error[E0310]: the parameter type `U` may not live long enough
48663c56 2 --> $DIR/dont-infer-static.rs:8:5
8faf50e0
XL
3 |
4LL | struct Foo<U> {
74b04a01 5 | - help: consider adding an explicit lifetime bound...: `U: 'static`
532ac7d7 6LL | bar: Bar<U>
8faf50e0
XL
7 | ^^^^^^^^^^^
8 |
9note: ...so that the type `U` will meet its required lifetime bounds
48663c56 10 --> $DIR/dont-infer-static.rs:8:5
8faf50e0 11 |
532ac7d7 12LL | bar: Bar<U>
8faf50e0
XL
13 | ^^^^^^^^^^^
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0310`.