diff options
Diffstat (limited to 'src/test/ui/suggestions/issue-102354.rs')
-rw-r--r-- | src/test/ui/suggestions/issue-102354.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/issue-102354.rs b/src/test/ui/suggestions/issue-102354.rs new file mode 100644 index 000000000..f881feb00 --- /dev/null +++ b/src/test/ui/suggestions/issue-102354.rs @@ -0,0 +1,10 @@ +trait Trait { + fn func() {} +} + +impl Trait for i32 {} + +fn main() { + let x: i32 = 123; + x.func(); //~ERROR no method +} |