]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-2951.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-2951.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-2951.rs:3:10
3    |
4 LL | fn foo<T, U>(x: T, y: U) {
5    |        -  - found type parameter
6    |        |
7    |        expected type parameter
8 LL |     let mut xx = x;
9    |                  - expected due to this value
10 LL |     xx = y;
11    |          ^ expected type parameter `T`, found type parameter `U`
12    |
13    = note: expected type parameter `T`
14               found type parameter `U`
15    = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
16    = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.