fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
438 B11 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-44454-3.rs:17:15
3   |
4LL | fn make_static<'a, T>(t: &'a T) -> &'static T {
5   |                -- lifetime `'a` defined here
6LL |     let x: <dyn Animal<&'a T> as Projector>::Foo = t;
7LL |     let any = generic::<dyn Animal<&'a T>, &'a T>(x);
8   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
9
10error: aborting due to previous error
11