aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/invalid-self.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pinned_drop/invalid-self.rs')
-rw-r--r--tests/ui/pinned_drop/invalid-self.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/pinned_drop/invalid-self.rs b/tests/ui/pinned_drop/invalid-self.rs
index 73d3b43..783167f 100644
--- a/tests/ui/pinned_drop/invalid-self.rs
+++ b/tests/ui/pinned_drop/invalid-self.rs
@@ -2,13 +2,13 @@
use std::pin::Pin;
-struct Struct {}
+struct S {}
-impl Struct {
+impl S {
fn take_ref_self(ref self: Pin<&mut Self>) {} //~ ERROR expected identifier, found keyword `self`
fn take_ref_mut_self(ref mut self: Pin<&mut Self>) {} //~ ERROR expected identifier, found keyword `self`
- fn self_subpat(self @ Struct {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@`
+ fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@`
}
fn main() {}