Skip to content

Commit 0e241d0

Browse files
committed
Add inline compile-fail markers to tests
1 parent f103342 commit 0e241d0

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/test/ui/suggestions/pub-ident-fn-2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

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

1314
fn main() {
1415
foo(2);

src/test/ui/suggestions/pub-ident-fn-or-struct-2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
// except according to those terms.
1010

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

1314
fn main() {}

src/test/ui/suggestions/pub-ident-fn-or-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
// except according to those terms.
1010

1111
pub S (foo) bar
12+
//~^ ERROR missing `fn` or `struct` for method or struct definition
1213

1314
fn main() {}

src/test/ui/suggestions/pub-ident-fn.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
pub foo(s: usize) -> bool { true }
12+
//~^ ERROR missing `fn` for method definition
1213

1314
fn main() {
1415
foo(2);

src/test/ui/suggestions/pub-ident-struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
// except according to those terms.
1010

1111
pub S {
12+
//~^ ERROR missing `struct` for struct definition
1213
}
1314
fn main() {}

0 commit comments

Comments
 (0)