diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-10 17:26:20 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-10 17:48:33 -0700 |
| commit | 73eb89430569d80a2f3ff124514f2905b25dbe68 (patch) | |
| tree | 043cbdf83b4d77acd776de0873f9c329ccd70b3c /src/test | |
| parent | df790261696fb85c0cc4dee3950d7ba89804eb49 (diff) | |
| download | rust-73eb89430569d80a2f3ff124514f2905b25dbe68.tar.gz rust-73eb89430569d80a2f3ff124514f2905b25dbe68.zip | |
Report obsolete class method syntax
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/obsolete-syntax.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/compile-fail/obsolete-syntax.rs b/src/test/compile-fail/obsolete-syntax.rs index a6665ddbfd5..5f147e035f9 100644 --- a/src/test/compile-fail/obsolete-syntax.rs +++ b/src/test/compile-fail/obsolete-syntax.rs @@ -19,6 +19,14 @@ struct s { //~^ ERROR obsolete syntax: struct constructor } +struct ss { + fn foo() { } + //~^ ERROR obsolete syntax: class method + #[whatever] + fn foo() { } + //~^ ERROR obsolete syntax: class method +} + fn obsolete_with() { struct S { foo: (), |
