fork/rust

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

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

master
845 B26 linesraw
1error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied
2  --> $DIR/unable-fulfill-trait.rs:4:17
3   |
4LL |     field1: dyn Bar<'a, 'b,>,
5   |                 ^^^ expected 1 generic argument
6   |
7note: trait defined here, with 1 generic parameter: `U`
8  --> $DIR/unable-fulfill-trait.rs:9:11
9   |
10LL | pub trait Bar<'x, 's, U>
11   |           ^^^         -
12help: add missing generic argument
13   |
14LL |     field1: dyn Bar<'a, 'b, U,>,
15   |                           +++
16
17error[E0227]: ambiguous lifetime bound, explicit lifetime bound required
18  --> $DIR/unable-fulfill-trait.rs:4:13
19   |
20LL |     field1: dyn Bar<'a, 'b,>,
21   |             ^^^^^^^^^^^^^^^^
22
23error: aborting due to 2 previous errors
24
25Some errors have detailed explanations: E0107, E0227.
26For more information about an error, try `rustc --explain E0107`.