]>
Commit | Line | Data |
---|---|---|
041b39d2 | 1 | #![feature(alloc)] |
0731742a | 2 | #![allow(unused_extern_crates, non_camel_case_types)] |
476ff2be | 3 | |
041b39d2 | 4 | extern crate alloc; |
3157f602 | 5 | |
5bcae85e | 6 | mod foo { |
041b39d2 | 7 | pub trait alloc { |
5bcae85e | 8 | fn do_something(); |
3157f602 | 9 | } |
a7813a04 XL |
10 | } |
11 | ||
041b39d2 | 12 | use foo::alloc; |
5bcae85e | 13 | //~^ ERROR E0254 |
5bcae85e SL |
14 | |
15 | fn main() {} |