]> git.proxmox.com Git - rustc.git/blob - tests/ui/traits/object/with-self-in-projection-output-bad.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / traits / object / with-self-in-projection-output-bad.stderr
1 error[E0191]: the value of the associated type `Output` (from trait `Base`) must be specified
2 --> $DIR/with-self-in-projection-output-bad.rs:45:21
3 |
4 LL | type Output;
5 | ----------- `Output` defined here
6 ...
7 LL | let _x: Box<dyn Helper<Target=i32>> = Box::new(2u32);
8 | ^^^^^^^^^^^^^^^^^^ help: specify the associated type: `Helper<Target=i32, Output = Type>`
9
10 error[E0191]: the value of the associated type `Output` (from trait `Base`) must be specified
11 --> $DIR/with-self-in-projection-output-bad.rs:48:21
12 |
13 LL | type Output;
14 | ----------- `Output` defined here
15 ...
16 LL | let _y: Box<dyn NormalizableHelper<Target=i32>> = Box::new(2u32);
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: specify the associated type: `NormalizableHelper<Target=i32, Output = Type>`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0191`.