]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1920-2.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / ui / issues / issue-1920-2.rs
1 //! Test that when a crate is linked under another name that name is used in global paths
2
3 // aux-build:issue-1920.rs
4
5 extern crate issue_1920 as bar;
6
7 fn assert_clone<T>() where T : Clone { }
8
9 fn main() {
10     assert_clone::<bar::S>();
11     //~^ ERROR `S: Clone` is not satisfied
12 }