rust/tests/ui/use/auxiliary/use-from-trait-xc.rs

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

30 lines
329 B
Rust
Raw Normal View History

pub use self::sub::{Bar, Baz};
pub trait Trait {
fn foo(&self);
type Assoc;
const CONST: u32;
}
struct Foo;
impl Foo {
pub fn new() {}
pub const C: u32 = 0;
}
mod sub {
pub struct Bar;
impl Bar {
pub fn new() {}
}
pub enum Baz {}
impl Baz {
pub fn new() {}
}
}