2015-08-01 19:41:01 +02:00
|
|
|
//! Test that when a crate is linked multiple times that the shortest absolute path name is used
|
|
|
|
|
2018-11-05 04:00:03 +00:00
|
|
|
// aux-build:issue-1920.rs
|
2017-12-19 15:04:02 +01:00
|
|
|
|
2015-08-01 19:41:01 +02:00
|
|
|
mod foo {
|
2017-12-19 15:04:02 +01:00
|
|
|
pub extern crate issue_1920;
|
2015-08-01 19:41:01 +02:00
|
|
|
}
|
|
|
|
|
2017-12-19 15:04:02 +01:00
|
|
|
extern crate issue_1920;
|
2015-08-01 19:41:01 +02:00
|
|
|
|
|
|
|
fn assert_clone<T>() where T : Clone { }
|
|
|
|
|
|
|
|
fn main() {
|
2017-12-19 15:04:02 +01:00
|
|
|
assert_clone::<foo::issue_1920::S>();
|
2020-09-02 10:40:56 +03:00
|
|
|
//~^ ERROR `S: Clone` is not satisfied
|
2015-08-17 14:16:41 -07:00
|
|
|
}
|