72b721f48e
When one of these tests fails, any compiler warnings will be printed to the console, which makes it harder to track down the actual reason for failure. (The outstanding warnings were found by temporarily adding `-Dwarnings` to the compiler arguments for `RunCoverage` in `src/tools/compiletest/src/runtest.rs`.)
15 lines
396 B
Plaintext
15 lines
396 B
Plaintext
$DIR/auxiliary/unused_mod_helper.rs:
|
|
LL| |#[allow(dead_code)]
|
|
LL| 0|pub fn never_called_function() {
|
|
LL| 0| println!("I am never called");
|
|
LL| 0|}
|
|
|
|
$DIR/unused_mod.rs:
|
|
LL| |#[path = "auxiliary/unused_mod_helper.rs"]
|
|
LL| |mod unused_module;
|
|
LL| |
|
|
LL| 1|fn main() {
|
|
LL| 1| println!("hello world!");
|
|
LL| 1|}
|
|
|