Rollup merge of #55199 - oli-obk:instance_printing, r=davidtwco
Impl items have generics
This commit is contained in:
commit
db4e77ce91
16 changed files with 34 additions and 35 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue