review comments

This commit is contained in:
Esteban Küber 2019-12-15 14:05:08 -08:00
parent 9c0000caca
commit c55615155d
14 changed files with 54 additions and 34 deletions

View file

@ -2,7 +2,7 @@ error[E0308]: mismatched types
--> $DIR/equality2.rs:25:18
|
LL | fn hide<T: Foo>(x: T) -> impl Foo {
| -------- this is the found opaque type
| -------- the found opaque type
...
LL | let _: u32 = hide(0_u32);
| --- ^^^^^^^^^^^ expected `u32`, found opaque type
@ -16,7 +16,7 @@ error[E0308]: mismatched types
--> $DIR/equality2.rs:31:18
|
LL | fn hide<T: Foo>(x: T) -> impl Foo {
| -------- this is the found opaque type
| -------- the found opaque type
...
LL | let _: i32 = Leak::leak(hide(0_i32));
| --- ^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found associated type
@ -32,7 +32,10 @@ error[E0308]: mismatched types
--> $DIR/equality2.rs:38:10
|
LL | fn hide<T: Foo>(x: T) -> impl Foo {
| -------- this is the expected opaque type
| --------
| |
| the expected opaque type
| the found opaque type
...
LL | x = (x.1,
| ^^^ expected `u32`, found `i32`
@ -44,7 +47,10 @@ error[E0308]: mismatched types
--> $DIR/equality2.rs:41:10
|
LL | fn hide<T: Foo>(x: T) -> impl Foo {
| -------- this is the expected opaque type
| --------
| |
| the expected opaque type
| the found opaque type
...
LL | x.0);
| ^^^ expected `i32`, found `u32`