]>
Commit | Line | Data |
---|---|---|
e9174d1e | 1 | //! Test that when a crate is linked multiple times that the shortest absolute path name is used |
85aaf69f | 2 | |
a1dfa0c6 | 3 | // aux-build:issue-1920.rs |
abe05a73 | 4 | |
e9174d1e | 5 | mod foo { |
abe05a73 | 6 | pub extern crate issue_1920; |
e9174d1e | 7 | } |
223e47cc | 8 | |
abe05a73 | 9 | extern crate issue_1920; |
62682a34 | 10 | |
e9174d1e | 11 | fn assert_clone<T>() where T : Clone { } |
62682a34 SL |
12 | |
13 | fn main() { | |
abe05a73 | 14 | assert_clone::<foo::issue_1920::S>(); |
1b1a35ee | 15 | //~^ ERROR `S: Clone` is not satisfied |
62682a34 | 16 | } |