]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/unable-fulfill-trait.stderr
Rollup merge of #107348 - lcnr:project-solve-new, r=compiler-errors
[rust.git] / tests / rustdoc-ui / unable-fulfill-trait.stderr
1 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
2   --> $DIR/unable-fulfill-trait.rs:4:17
3    |
4 LL |     field1: dyn Bar<'a, 'b,>,
5    |                 ^^^ expected 1 generic argument
6    |
7 note: trait defined here, with 1 generic parameter: `U`
8   --> $DIR/unable-fulfill-trait.rs:9:11
9    |
10 LL | pub trait Bar<'x, 's, U>
11    |           ^^^         -
12 help: add missing generic argument
13    |
14 LL |     field1: dyn Bar<'a, 'b, U,>,
15    |                           +++
16
17 error[E0227]: ambiguous lifetime bound, explicit lifetime bound required
18   --> $DIR/unable-fulfill-trait.rs:4:13
19    |
20 LL |     field1: dyn Bar<'a, 'b,>,
21    |             ^^^^^^^^^^^^^^^^
22
23 error: aborting due to 2 previous errors
24
25 Some errors have detailed explanations: E0107, E0227.
26 For more information about an error, try `rustc --explain E0107`.