rust/tests/run-pass/deprecated.rs

13 lines
500 B
Rust
Raw Normal View History

#![feature(plugin)]
#![plugin(clippy)]
#[warn(str_to_string)]
2016-09-23 19:51:32 +02:00
//~^WARNING: lint str_to_string has been removed: using `str::to_string`
#[warn(string_to_string)]
2016-09-23 19:51:32 +02:00
//~^WARNING: lint string_to_string has been removed: using `string::to_string`
#[warn(unstable_as_slice)]
2016-09-23 19:51:32 +02:00
//~^WARNING: lint unstable_as_slice has been removed: `Vec::as_slice` has been stabilized
#[warn(unstable_as_mut_slice)]
2016-09-23 19:51:32 +02:00
//~^WARNING: lint unstable_as_mut_slice has been removed: `Vec::as_mut_slice` has been stabilized
fn main() {}