]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/issue-98693.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / nll / issue-98693.stderr
CommitLineData
48663c56 1error[E0310]: the parameter type `T` may not live long enough
923072b8 2 --> $DIR/issue-98693.rs:15:5
48663c56 3 |
923072b8
FG
4LL | / || {
5LL | |
6LL | | assert_static::<T>();
7LL | | };
8 | |_____^ ...so that the type `T` will meet its required lifetime bounds
48663c56 9 |
04454e1e
FG
10help: consider adding an explicit lifetime bound...
11 |
923072b8
FG
12LL | fn test<T: 'static>() {
13 | +++++++++
48663c56
XL
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0310`.