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 11:23:40 +00:00
#![feature(unstable_test_feature)]
2020-01-23 00:00:00 +00: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();
}