]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1920-3.rs
Consider privacy more carefully when suggesting accessing fields
[rust.git] / src / test / ui / issues / issue-1920-3.rs
1 //! Test that when a crate is linked multiple times that the shortest absolute path name is used
2
3 // aux-build:issue-1920.rs
4
5 mod foo {
6     pub extern crate issue_1920;
7 }
8
9 extern crate issue_1920;
10
11 fn assert_clone<T>() where T : Clone { }
12
13 fn main() {
14     assert_clone::<foo::issue_1920::S>();
15     //~^ ERROR `S: Clone` is not satisfied
16 }