]> git.lizzy.rs Git - rust.git/blob - tests/ui/svh/svh-use-trait.rs
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / svh / svh-use-trait.rs
1 // note that these aux-build directives must be in this order
2 // aux-build:svh-uta-base.rs
3 // aux-build:svh-utb.rs
4 // aux-build:svh-uta-change-use-trait.rs
5 // normalize-stderr-test: "(crate `(\w+)`:) .*" -> "$1 $$PATH_$2"
6
7 //! "svh-uta-trait.rs" is checking that we detect a
8 //! change from `use foo::TraitB` to use `foo::TraitB` in the hash
9 //! (SVH) computation (#14132), since that will affect method
10 //! resolution.
11
12 extern crate uta;
13 extern crate utb; //~ ERROR: found possibly newer version of crate `uta` which `utb` depends
14
15 fn main() {
16     utb::foo()
17 }