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>();
|
2020-09-02 02:40:56 -05:00
|
|
|
//~^ ERROR `S: Clone` is not satisfied
|
2015-08-17 16:16:41 -05:00
|
|
|
}
|