diff options
Diffstat (limited to 'src/test/ui/span/issue-27522.rs')
-rw-r--r-- | src/test/ui/span/issue-27522.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/span/issue-27522.rs b/src/test/ui/span/issue-27522.rs new file mode 100644 index 000000000..7a0cfb679 --- /dev/null +++ b/src/test/ui/span/issue-27522.rs @@ -0,0 +1,9 @@ +// Point at correct span for self type + +struct SomeType {} + +trait Foo { + fn handler(self: &SomeType); //~ ERROR invalid `self` parameter type +} + +fn main() {} |