rust/tests/ui/use/use-paths-as-items.rs

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

10 lines
249 B
Rust
Raw Normal View History

// Each path node in a `use` declaration must be treated as an item. If not, the following code
// will trigger an ICE.
//
// Related issue: #25763
use std::{mem, ptr};
use std::mem; //~ ERROR the name `mem` is defined multiple times
fn main() {}