rust/tests/ui/error-codes/E0254.rs

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

15 lines
169 B
Rust
Raw Normal View History

#![allow(non_camel_case_types)]
2017-06-13 17:52:59 -05:00
extern crate alloc;
2016-08-05 06:17:39 -05:00
mod foo {
2017-06-13 17:52:59 -05:00
pub trait alloc {
2016-08-05 06:17:39 -05:00
fn do_something();
}
}
2017-06-13 17:52:59 -05:00
use foo::alloc;
//~^ ERROR E0254
2016-08-05 06:17:39 -05:00
fn main() {}