]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/equality2.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / impl-trait / equality2.stderr
1 error[E0308]: mismatched types
2   --> $DIR/equality2.rs:35:18
3    |
4 LL |     let _: u32 = hide(0_u32);
5    |                  ^^^^^^^^^^^ expected u32, found opaque type
6    |
7    = note: expected type `u32`
8               found type `impl Foo`
9
10 error[E0308]: mismatched types
11   --> $DIR/equality2.rs:41:18
12    |
13 LL |     let _: i32 = Leak::leak(hide(0_i32));
14    |                  ^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found associated type
15    |
16    = note: expected type `i32`
17               found type `<impl Foo as Leak>::T`
18
19 error[E0308]: mismatched types
20   --> $DIR/equality2.rs:48:10
21    |
22 LL |     x = (x.1,
23    |          ^^^ expected u32, found i32
24    |
25    = note: expected type `impl Foo` (u32)
26               found type `impl Foo` (i32)
27
28 error[E0308]: mismatched types
29   --> $DIR/equality2.rs:51:10
30    |
31 LL |          x.0);
32    |          ^^^ expected i32, found u32
33    |
34    = note: expected type `impl Foo` (i32)
35               found type `impl Foo` (u32)
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0308`.