Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix (some) wrong tests
  • Loading branch information
nvlbg committed Oct 17, 2019
commit ac70c66eb24349d436275fa500ab5bf9bccc496e
2 changes: 1 addition & 1 deletion src/test/ui/panics/doublepanic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
run-fail
#![allow(unreachable_code)]

// run-fail
// error-pattern:One
fn main() {
panic!("One");
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/panics/explicit-panic-msg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run-fail
#![allow(unused_assignments)]
#![allow(unused_variables)]

// run-fail
// error-pattern:wooooo
fn main() {
let mut a = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/panics/if-check-panic.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// run-fail
// error-pattern:Number is odd
fn even(x: usize) -> bool {
if x < 2 {
return false;
} else if x == 2 {
return true;
} else {
run-fail
return even(x - 2);
}
}
Expand Down