Rollup merge of #55199 - oli-obk:instance_printing, r=davidtwco

Impl items have generics
This commit is contained in:
kennytm 2018-10-28 21:38:53 +08:00
commit db4e77ce91
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
16 changed files with 34 additions and 35 deletions

View file

@ -1,4 +1,4 @@
error[E0606]: casting `fn(i32) -> Inches {Inches::{{constructor}}}` as `f32` is invalid
error[E0606]: casting `fn(i32) -> Inches {Inches}` as `f32` is invalid
--> $DIR/issue-21554.rs:14:5
|
LL | Inches as f32;

View file

@ -9,7 +9,7 @@ LL | fn test() -> Foo { Foo } //~ ERROR mismatched types
| expected `Foo` because of return type
|
= note: expected type `Foo`
found type `fn(u32) -> Foo {Foo::{{constructor}}}`
found type `fn(u32) -> Foo {Foo}`
error: aborting due to previous error