]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-74816.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-74816.stderr
1 error[E0277]: the trait bound `Self: Trait1` is not satisfied
2 --> $DIR/issue-74816.rs:9:5
3 |
4 LL | type Associated: Trait1 = Self;
5 | ^^^^^^^^^^^^^^^^^------^^^^^^^^
6 | | |
7 | | required by this bound in `Trait2::Associated`
8 | the trait `Trait1` is not implemented for `Self`
9 |
10 help: consider further restricting `Self`
11 |
12 LL | trait Trait2: Trait1 {
13 | ^^^^^^^^
14
15 error[E0277]: the size for values of type `Self` cannot be known at compilation time
16 --> $DIR/issue-74816.rs:9:5
17 |
18 LL | type Associated: Trait1 = Self;
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 | |
21 | doesn't have a size known at compile-time
22 | required by this bound in `Trait2::Associated`
23 |
24 help: consider further restricting `Self`
25 |
26 LL | trait Trait2: Sized {
27 | ^^^^^^^
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0277`.