mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
01b75e20f2
to avoid going over the existing limit now that the ui-fulldeps tests have been moved to ui.
16 lines
257 B
Rust
16 lines
257 B
Rust
pub mod submod {
|
|
// Create ambiguity with the std::vec::Vec item:
|
|
pub struct Vec;
|
|
}
|
|
|
|
fn test(_v: &Vec<Vec<u32>>) {
|
|
}
|
|
|
|
fn main() {
|
|
let v = std::collections::HashMap::new();
|
|
v.insert(3u8, 1u8);
|
|
|
|
test(&v);
|
|
//~^ ERROR mismatched types
|
|
}
|