2015-08-01 17:41:01 +00: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 14:04:02 +00:00
|
|
|
|
2015-08-01 17:41:01 +00:00
|
|
|
mod foo {
|
2017-12-19 14:04:02 +00:00
|
|
|
pub extern crate issue_1920;
|
2015-08-01 17:41:01 +00:00
|
|
|
}
|
|
|
|
|
2017-12-19 14:04:02 +00:00
|
|
|
extern crate issue_1920;
|
2015-08-01 17:41:01 +00:00
|
|
|
|
|
|
|
fn assert_clone<T>() where T : Clone { }
|
|
|
|
|
|
|
|
fn main() {
|
2017-12-19 14:04:02 +00:00
|
|
|
assert_clone::<foo::issue_1920::S>();
|
2020-09-02 07:40:56 +00:00
|
|
|
//~^ ERROR `S: Clone` is not satisfied
|
2015-08-17 21:16:41 +00:00
|
|
|
}
|