]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/overlapping_pub_trait.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / imports / overlapping_pub_trait.rs
1 // aux-build:overlapping_pub_trait_source.rs
2
3 /*
4  * This crate declares two public paths, `m::Tr` and `prelude::_`. Make sure we prefer the former.
5  */
6 extern crate overlapping_pub_trait_source;
7
8 fn main() {
9     //~^ HELP the following trait is implemented but not in scope; perhaps add a `use` for it:
10     //~| SUGGESTION overlapping_pub_trait_source::m::Tr
11     use overlapping_pub_trait_source::S;
12     S.method();
13     //~^ ERROR no method named `method` found for struct `S` in the current scope [E0599]
14     //~| HELP items from traits can only be used if the trait is in scope
15 }