2015-08-01 12:41:01 -05:00
|
|
|
//! Test that absolute path names are correct when a crate is not linked into the root namespace
|
|
|
|
|
2018-11-04 22:00:03 -06:00
|
|
|
// aux-build:issue-1920.rs
|
2017-12-19 08:04:02 -06:00
|
|
|
|
2015-08-01 12:41:01 -05:00
|
|
|
mod foo {
|
2017-12-19 08:04:02 -06:00
|
|
|
pub extern crate issue_1920;
|
2015-08-01 12:41:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn assert_clone<T>() where T : Clone { }
|
|
|
|
|
|
|
|
fn main() {
|
2017-12-19 08:04:02 -06:00
|
|
|
assert_clone::<foo::issue_1920::S>();
|
|
|
|
//~^ ERROR `foo::issue_1920::S: std::clone::Clone` is not satisfied
|
2015-08-17 16:16:41 -05:00
|
|
|
}
|