]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/with-core-crate.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / lint / dead-code / with-core-crate.rs
1 #![deny(dead_code)]
2 #![allow(unreachable_code)]
3
4 #[macro_use]
5 extern crate core;
6
7 fn foo() { //~ ERROR function `foo` is never used
8
9     // none of these should have any dead_code exposed to the user
10     panic!();
11
12     panic!("foo");
13
14     panic!("bar {}", "baz")
15 }
16
17
18 fn main() {}