]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54943.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-54943.stderr
1 error[E0477]: the type `&'a u32` does not fulfill the required lifetime
2   --> $DIR/issue-54943.rs:6:13
3    |
4 LL |     let x = foo::<&'a u32>();
5    |             ^^^^^^^^^^^^^^
6    |
7 note: type must satisfy the static lifetime as required by this binding
8   --> $DIR/issue-54943.rs:1:11
9    |
10 LL | fn foo<T: 'static>() { }
11    |           ^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0477`.