summary refs log tree commit diff
path: root/tests/ui/privacy/use-in-impl-scope-12729.rs
blob: 58fe042beece47ae53e8d57a57dab8bf5d182473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Regression test for https://github.com/rust-lang/rust/issues/12729

//@ edition: 2015
//@ check-pass
#![allow(dead_code)]

pub struct Foo;

mod bar {
    use Foo;

    impl Foo {
        fn baz(&self) {}
    }
}
fn main() {}