diff options
Diffstat (limited to 'src/test/ui/suggestions/call-on-unimplemented-ctor.rs')
-rw-r--r-- | src/test/ui/suggestions/call-on-unimplemented-ctor.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/suggestions/call-on-unimplemented-ctor.rs b/src/test/ui/suggestions/call-on-unimplemented-ctor.rs deleted file mode 100644 index 5f811044e..000000000 --- a/src/test/ui/suggestions/call-on-unimplemented-ctor.rs +++ /dev/null @@ -1,17 +0,0 @@ -fn main() { - insert_resource(Marker); - insert_resource(Time); - //~^ ERROR the trait bound `fn(u32) -> Time {Time}: Resource` is not satisfied - //~| HELP use parentheses to construct this tuple struct -} - -trait Resource {} - -fn insert_resource<R: Resource>(resource: R) {} - -struct Marker; -impl Resource for Marker {} - -struct Time(u32); - -impl Resource for Time {} |