]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-1920-2.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-1920-2.rs
index 02c925f336eae8fa20cde1a07638797a6691d096..2af6e2cc991faa98447b0619dbeb99d1f5db8a76 100644 (file)
 
 //! Test that when a crate is linked under another name that name is used in global paths
 
-extern crate core as bar;
+// aux-build:issue_1920.rs
+
+extern crate issue_1920 as bar;
 
 fn assert_clone<T>() where T : Clone { }
 
 fn main() {
-    assert_clone::<bar::sync::atomic::AtomicBool>();
-    //~^ ERROR `bar::sync::atomic::AtomicBool: bar::clone::Clone` is not satisfied
+    assert_clone::<bar::S>();
+    //~^ ERROR `bar::S: std::clone::Clone` is not satisfied
 }