fork/rust

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

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

1.40.0
697 B16 linesraw
1error[E0271]: type mismatch resolving `<<T as Trait>::A as MultiDispatch<i32>>::O == T`
2  --> $DIR/issue-24204.rs:14:1
3   |
4LL | trait Trait: Sized {
5   | ------------------ required by `Trait`
6...
7LL | fn test<T: Trait<B=i32>>(b: i32) -> T where T::A: MultiDispatch<i32> { T::new(b) }
8   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter, found associated type
9   |
10   = note: expected type `T`
11              found type `<<T as Trait>::A as MultiDispatch<i32>>::O`
12   = note: you might be missing a type parameter or trait bound
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0271`.