fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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