]> git.lizzy.rs Git - rust.git/blob - src/test/ui/symbol-names/impl1.rs
rustc: pass Option<&Substs> and Namespace around in ty::item_path.
[rust.git] / src / test / ui / symbol-names / impl1.rs
1 #![feature(rustc_attrs)]
2 #![allow(dead_code)]
3
4 mod foo {
5     pub struct Foo { x: u32 }
6
7     impl Foo {
8         #[rustc_symbol_name] //~ ERROR _ZN15impl1..foo..Foo3bar
9         #[rustc_item_path] //~ ERROR item-path(foo::Foo::bar)
10         fn bar() { }
11     }
12 }
13
14 mod bar {
15     use foo::Foo;
16
17     impl Foo {
18         #[rustc_symbol_name] //~ ERROR _ZN5impl13bar33_$LT$impl$u20$impl1..foo..Foo$GT$3baz
19         #[rustc_item_path] //~ ERROR item-path(bar::<impl foo::Foo>::baz)
20         fn baz() { }
21     }
22 }
23
24 fn main() {
25 }