diff options
Diffstat (limited to 'tests/ui/suggestions/assoc-type-in-method-return.rs')
-rw-r--r-- | tests/ui/suggestions/assoc-type-in-method-return.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/suggestions/assoc-type-in-method-return.rs b/tests/ui/suggestions/assoc-type-in-method-return.rs new file mode 100644 index 000000000..9bde65998 --- /dev/null +++ b/tests/ui/suggestions/assoc-type-in-method-return.rs @@ -0,0 +1,7 @@ +trait A { + type Bla; + fn to_bla(&self) -> Bla; + //~^ ERROR cannot find type `Bla` in this scope +} + +fn main() {} |