fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
479 B14 linesraw
1error: implementation of `Foo` is not general enough
2  --> $DIR/due-to-where-clause.rs:2:5
3   |
4LL |     test::<FooS>(&mut 42);
5   |     ^^^^^^^^^^^^ implementation of `Foo` is not general enough
6...
7LL | trait Foo<'a> {}
8   | ---------------- trait `Foo` defined here
9   |
10   = note: `FooS<'_>` must implement `Foo<'0>`, for any lifetime `'0`...
11   = note: ...but `FooS<'_>` actually implements `Foo<'1>`, for some specific lifetime `'1`
12
13error: aborting due to previous error
14