]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/universal-two-impl-traits.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / impl-trait / universal-two-impl-traits.stderr
1 error[E0308]: mismatched types
2   --> $DIR/universal-two-impl-traits.rs:5:9
3    |
4 LL | fn foo(x: impl Debug, y: impl Debug) -> String {
5    |           ----------     ---------- found type parameter
6    |           |
7    |           expected type parameter
8 LL |     let mut a = x;
9    |                 - expected due to this value
10 LL |     a = y;
11    |         ^ expected type parameter `impl Debug`, found a different type parameter `impl Debug`
12    |
13    = note: expected type parameter `impl Debug` (type parameter `impl Debug`)
14               found type parameter `impl Debug` (type parameter `impl Debug`)
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`.