Skip to content

Commit 40bd662

Browse files
committed
restore does-nothing
1 parent 4ef2320 commit 40bd662

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

src/tools/tidy/src/ui_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ENTRY_LIMIT: usize = 900;
1818
// FIXME: The following limits should be reduced eventually.
1919

2020
const ISSUES_ENTRY_LIMIT: usize = 1733;
21-
const ROOT_ENTRY_LIMIT: usize = 859;
21+
const ROOT_ENTRY_LIMIT: usize = 861;
2222

2323
const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
2424
"rs", // test source files

tests/ui/does-nothing.rs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fn main() { println!("doing"); this_does_nothing_what_the; println!("boing"); }
2+
//~^ ERROR cannot find value `this_does_nothing_what_the` in this scope

tests/ui/does-nothing.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0425]: cannot find value `this_does_nothing_what_the` in this scope
2+
--> $DIR/does-nothing.rs:1:32
3+
|
4+
LL | fn main() { println!("doing"); this_does_nothing_what_the; println!("boing"); }
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
6+
7+
error: aborting due to 1 previous error
8+
9+
For more information about this error, try `rustc --explain E0425`.

0 commit comments

Comments
 (0)