rust/tests/ui/lint/lint-output-format-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
359 B
Rust
Raw Normal View History

// aux-build:lint_output_format.rs
2018-07-23 06:23:40 -05:00
#![feature(unstable_test_feature)]
2020-01-22 18:00:00 -06:00
// check-pass
extern crate lint_output_format;
use lint_output_format::{foo, bar};
//~^ WARNING use of deprecated function `lint_output_format::foo`: text
fn main() {
let _x = foo();
//~^ WARNING use of deprecated function `lint_output_format::foo`: text
let _y = bar();
}