Skip to content

Commit 0e75684

Browse files
committed
Tidying up some of the line spacing / code formatting for NOTE/ERROR annotation to match other files.
1 parent 6131815 commit 0e75684

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

src/test/compile-fail/E0060.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ extern "C" {
1313
}
1414

1515
fn main() {
16-
unsafe { printf(); } //~ ERROR E0060
17-
//~| NOTE expected at least 1 parameter
18-
//~| NOTE the following parameter type was expected
16+
unsafe { printf(); }
17+
//~^ ERROR E0060
18+
//~| NOTE expected at least 1 parameter
19+
//~| NOTE the following parameter type was expected
1920
}

src/test/compile-fail/E0061.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
fn f(a: u16, b: &str) {}
1212

1313
fn main() {
14-
f(0); //~ ERROR E0061
15-
//~| NOTE expected 2 parameters
16-
//~| NOTE the following parameter types were expected
14+
f(0);
15+
//~^ ERROR E0061
16+
//~| NOTE expected 2 parameters
17+
//~| NOTE the following parameter types were expected
1718
}

src/test/compile-fail/issue-18819.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ fn print_x(_: &Foo<Item=bool>, extra: &str) {
2323
}
2424

2525
fn main() {
26-
print_x(X); //~error this function takes 2 parameters but 1 parameter was supplied
27-
//~^ NOTE the following parameter types were expected: &Foo<Item=bool>, &str
26+
print_x(X);
27+
//~^ ERROR this function takes 2 parameters but 1 parameter was supplied
28+
//~| NOTE the following parameter types were expected: &Foo<Item=bool>, &str
2829
//~| NOTE expected 2 parameters
2930
}

src/test/compile-fail/issue-3044.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
needlesArr.iter().fold(|x, y| {
1515
});
1616
//~^^ ERROR this function takes 2 parameters but 1 parameter was supplied
17-
//~^^^ NOTE the following parameter types were expected
17+
//~| NOTE the following parameter types were expected
1818
//~| NOTE expected 2 parameters
1919
// the first error is, um, non-ideal.
2020
}

src/test/compile-fail/issue-4935.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// Regression test for issue #4935
1212

1313
fn foo(a: usize) {}
14-
fn main() { foo(5, 6) } //~ ERROR this function takes 1 parameter but 2 parameters were supplied
15-
//~^ NOTE the following parameter type was expected
14+
fn main() { foo(5, 6) }
15+
//~^ ERROR this function takes 1 parameter but 2 parameters were supplied
16+
//~| NOTE the following parameter type was expected
1617
//~| NOTE expected 1 parameter

src/test/compile-fail/not-enough-arguments.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ fn foo(a: isize, b: isize, c: isize, d:isize) {
1919
fn main() {
2020
foo(1, 2, 3);
2121
//~^ ERROR this function takes 4 parameters but 3
22-
//~^^ NOTE the following parameter types were expected
22+
//~| NOTE the following parameter types were expected
2323
//~| NOTE expected 4 parameters
2424
}

0 commit comments

Comments
 (0)