diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-11-25 06:26:46 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-11-25 06:26:46 -0800 |
| commit | 0e241d0059b0d2c2b1dc66883c1e1ebc8b474111 (patch) | |
| tree | 78300d75fd95ede042c34ad7668c738d04b4855c | |
| parent | f103342b8f63e6e88992749b5d0a49995bad5d48 (diff) | |
Add inline `compile-fail` markers to tests
| -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() {} |
