]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/dead-code/basic.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / lint / dead-code / basic.rs
CommitLineData
1a4d82fc
JJ
1#![deny(dead_code)]
2#![allow(unreachable_code)]
223e47cc 3
923072b8 4fn foo() { //~ ERROR function `foo` is never used
223e47cc 5
1a4d82fc
JJ
6 // none of these should have any dead_code exposed to the user
7 panic!();
223e47cc 8
1a4d82fc 9 panic!("foo");
223e47cc 10
1a4d82fc 11 panic!("bar {}", "baz")
223e47cc 12}
1a4d82fc
JJ
13
14
15fn main() {}