diff options
Diffstat (limited to 'src/test/ui/mismatched_types/method-help-unsatisfied-bound.rs')
-rw-r--r-- | src/test/ui/mismatched_types/method-help-unsatisfied-bound.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/mismatched_types/method-help-unsatisfied-bound.rs b/src/test/ui/mismatched_types/method-help-unsatisfied-bound.rs new file mode 100644 index 000000000..6303c6e6a --- /dev/null +++ b/src/test/ui/mismatched_types/method-help-unsatisfied-bound.rs @@ -0,0 +1,7 @@ +struct Foo; + +fn main() { + let a: Result<(), Foo> = Ok(()); + a.unwrap(); + //~^ ERROR `Foo` doesn't implement `Debug` +} |