]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-from-trait-xc.rs
Rollup merge of #90851 - ibraheemdev:downcast-unchecked, r=scottmcm
[rust.git] / src / test / ui / use / use-from-trait-xc.rs
1 // aux-build:use-from-trait-xc.rs
2
3 extern crate use_from_trait_xc;
4
5 use use_from_trait_xc::Trait::foo;
6 //~^ ERROR `foo` is not directly importable
7
8 use use_from_trait_xc::Trait::Assoc;
9 //~^ ERROR `Assoc` is not directly importable
10
11 use use_from_trait_xc::Trait::CONST;
12 //~^ ERROR `CONST` is not directly importable
13
14 use use_from_trait_xc::Foo::new; //~ ERROR struct `Foo` is private
15 //~^ ERROR unresolved import `use_from_trait_xc::Foo`
16
17 use use_from_trait_xc::Foo::C; //~ ERROR struct `Foo` is private
18 //~^ ERROR unresolved import `use_from_trait_xc::Foo`
19
20 use use_from_trait_xc::Bar::new as bnew;
21 //~^ ERROR unresolved import `use_from_trait_xc::Bar`
22
23 use use_from_trait_xc::Baz::new as baznew;
24 //~^ ERROR unresolved import `use_from_trait_xc::Baz::new`
25
26 fn main() {}