mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
12 lines
392 B
Rust
12 lines
392 B
Rust
#![feature(plugin)]
|
|
#![plugin(clippy)]
|
|
#![allow(unused_imports)]
|
|
#![deny(unsafe_removed_from_name)]
|
|
|
|
use std::cell::{UnsafeCell as TotallySafeCell};
|
|
//~^ ERROR removed "unsafe" from the name of `UnsafeCell` in use as `TotallySafeCell`
|
|
|
|
use std::cell::UnsafeCell as TotallySafeCellAgain;
|
|
//~^ ERROR removed "unsafe" from the name of `UnsafeCell` in use as `TotallySafeCellAgain`
|
|
|
|
fn main() {}
|