Auto merge of #53705 - ms2300:tmp, r=oli-obk

#53576 Renaming TyAnon -> TyOpaque

Fixes #53576
This commit is contained in:
bors 2018-09-08 14:16:37 +00:00
commit b24330fb7d
50 changed files with 228 additions and 224 deletions

View file

@ -2,7 +2,7 @@ error[E0308]: mismatched types
--> $DIR/generic_type_does_not_live_long_enough.rs:16:18
|
LL | let z: i32 = x; //~ ERROR mismatched types
| ^ expected i32, found anonymized type
| ^ expected i32, found opaque type
|
= note: expected type `i32`
found type `WrongGeneric::<&{integer}>`

View file

@ -2,7 +2,7 @@ error[E0308]: mismatched types
--> $DIR/generic_type_does_not_live_long_enough.rs:16:18
|
LL | let z: i32 = x; //~ ERROR mismatched types
| ^ expected i32, found anonymized type
| ^ expected i32, found opaque type
|
= note: expected type `i32`
found type `WrongGeneric::<&{integer}>`

View file

@ -2,7 +2,7 @@ error[E0308]: mismatched types
--> $DIR/never_reveal_concrete_type.rs:24:27
|
LL | let _: &'static str = x; //~ mismatched types
| ^ expected reference, found anonymized type
| ^ expected reference, found opaque type
|
= note: expected type `&'static str`
found type `NoReveal`

View file

@ -2,7 +2,7 @@ error[E0308]: mismatched types
--> $DIR/no_revealing_outside_defining_module.rs:26:19
|
LL | let _: &str = bomp(); //~ ERROR mismatched types
| ^^^^^^ expected &str, found anonymized type
| ^^^^^^ expected &str, found opaque type
|
= note: expected type `&str`
found type `Boo`
@ -13,7 +13,7 @@ error[E0308]: mismatched types
LL | fn bomp() -> boo::Boo {
| -------- expected `Boo` because of return type
LL | "" //~ ERROR mismatched types
| ^^ expected anonymized type, found reference
| ^^ expected opaque type, found reference
|
= note: expected type `Boo`
found type `&'static str`

View file

@ -36,7 +36,7 @@ fn main() {
//~^ ERROR mismatched types
//~| expected type `u32`
//~| found type `impl Foo`
//~| expected u32, found anonymized type
//~| expected u32, found opaque type
let _: i32 = Leak::leak(hide(0_i32));
//~^ ERROR mismatched types

View file

@ -2,7 +2,7 @@ error[E0308]: mismatched types
--> $DIR/equality2.rs:35:18
|
LL | let _: u32 = hide(0_u32);
| ^^^^^^^^^^^ expected u32, found anonymized type
| ^^^^^^^^^^^ expected u32, found opaque type
|
= note: expected type `u32`
found type `impl Foo`