2015-10-07 23:11:25 +01:00
|
|
|
//! Test that when a crate is linked under another name that name is used in global paths
|
2015-08-01 19:41:01 +02:00
|
|
|
|
2018-11-05 04:00:03 +00:00
|
|
|
// aux-build:issue-1920.rs
|
2017-12-19 15:04:02 +01:00
|
|
|
|
|
|
|
extern crate issue_1920 as bar;
|
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::<bar::S>();
|
2020-09-02 10:40:56 +03:00
|
|
|
//~^ ERROR `S: Clone` is not satisfied
|
2015-08-17 14:16:41 -07:00
|
|
|
}
|