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 22:52:59 +00:00
extern crate alloc;
2016-08-05 11:17:39 +00:00
mod foo {
2017-06-13 22:52:59 +00:00
pub trait alloc {
2016-08-05 11:17:39 +00:00
fn do_something();
}
}
2017-06-13 22:52:59 +00:00
use foo::alloc;
//~^ ERROR E0254
2016-08-05 11:17:39 +00:00
fn main() {}