tests: Move run-pass tests without naming conflicts to ui
This commit is contained in:
parent
ca9faa52f5
commit
9be35f82c1
3226 changed files with 64 additions and 196 deletions
28
src/test/ui/unreachable-code.rs
Normal file
28
src/test/ui/unreachable-code.rs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
// run-pass
|
||||
|
||||
#![allow(unused_must_use)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
#![allow(path_statements)]
|
||||
#![allow(unreachable_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
fn id(x: bool) -> bool { x }
|
||||
|
||||
fn call_id() {
|
||||
let c = panic!();
|
||||
id(c);
|
||||
}
|
||||
|
||||
fn call_id_2() { id(true) && id(return); }
|
||||
|
||||
fn call_id_3() { id(return) && id(return); }
|
||||
|
||||
fn ret_guard() {
|
||||
match 2 {
|
||||
x if (return) => { x; }
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue