diff options
| -rw-r--r-- | src/test/ui/suggestions/pub-ident-fn-2.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/suggestions/pub-ident-fn-or-struct-2.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/suggestions/pub-ident-fn-or-struct.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/suggestions/pub-ident-fn.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/suggestions/pub-ident-struct.rs | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/pub-ident-fn-2.rs b/src/test/ui/suggestions/pub-ident-fn-2.rs index 40c50a4b8dd..44884bfcdfd 100644 --- a/src/test/ui/suggestions/pub-ident-fn-2.rs +++ b/src/test/ui/suggestions/pub-ident-fn-2.rs @@ -9,6 +9,7 @@ // except according to those terms. pub foo(s: usize) { bar() } +//~^ ERROR missing `fn` for method definition fn main() { foo(2); diff --git a/src/test/ui/suggestions/pub-ident-fn-or-struct-2.rs b/src/test/ui/suggestions/pub-ident-fn-or-struct-2.rs index 6b5ae19e6ff..1ccadc8a40b 100644 --- a/src/test/ui/suggestions/pub-ident-fn-or-struct-2.rs +++ b/src/test/ui/suggestions/pub-ident-fn-or-struct-2.rs @@ -9,5 +9,6 @@ // except according to those terms. pub S(); +//~^ ERROR missing `fn` or `struct` for method or struct definition fn main() {} diff --git a/src/test/ui/suggestions/pub-ident-fn-or-struct.rs b/src/test/ui/suggestions/pub-ident-fn-or-struct.rs index 8bb1c6afcbb..0664918945b 100644 --- a/src/test/ui/suggestions/pub-ident-fn-or-struct.rs +++ b/src/test/ui/suggestions/pub-ident-fn-or-struct.rs @@ -9,5 +9,6 @@ // except according to those terms. pub S (foo) bar +//~^ ERROR missing `fn` or `struct` for method or struct definition fn main() {} diff --git a/src/test/ui/suggestions/pub-ident-fn.rs b/src/test/ui/suggestions/pub-ident-fn.rs index 043cf9328c9..1d641996420 100644 --- a/src/test/ui/suggestions/pub-ident-fn.rs +++ b/src/test/ui/suggestions/pub-ident-fn.rs @@ -9,6 +9,7 @@ // except according to those terms. pub foo(s: usize) -> bool { true } +//~^ ERROR missing `fn` for method definition fn main() { foo(2); diff --git a/src/test/ui/suggestions/pub-ident-struct.rs b/src/test/ui/suggestions/pub-ident-struct.rs index 3e14a36dbab..d08d498f87a 100644 --- a/src/test/ui/suggestions/pub-ident-struct.rs +++ b/src/test/ui/suggestions/pub-ident-struct.rs @@ -9,5 +9,6 @@ // except according to those terms. pub S { +//~^ ERROR missing `struct` for struct definition } fn main() {} |
