Skip to content

Commit

Permalink
Add inline compile-fail markers to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Nov 25, 2017
1 parent f103342 commit 0e241d0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/ui/suggestions/pub-ident-fn-2.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

pub foo(s: usize) { bar() }
//~^ ERROR missing `fn` for method definition

fn main() {
foo(2);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/suggestions/pub-ident-fn-or-struct-2.rs
Expand Up @@ -9,5 +9,6 @@
// except according to those terms.

pub S();
//~^ ERROR missing `fn` or `struct` for method or struct definition

fn main() {}
1 change: 1 addition & 0 deletions src/test/ui/suggestions/pub-ident-fn-or-struct.rs
Expand Up @@ -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() {}
1 change: 1 addition & 0 deletions src/test/ui/suggestions/pub-ident-fn.rs
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/suggestions/pub-ident-struct.rs
Expand Up @@ -9,5 +9,6 @@
// except according to those terms.

pub S {
//~^ ERROR missing `struct` for struct definition
}
fn main() {}

0 comments on commit 0e241d0

Please sign in to comment.