]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/resolve-primitive-fallback.rs
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / ui / resolve / resolve-primitive-fallback.rs
1 fn main() {
2     // Make sure primitive type fallback doesn't work in value namespace
3     std::mem::size_of(u16);
4     //~^ ERROR expected value, found builtin type `u16`
5     //~| ERROR function takes 0 arguments but 1 argument was supplied
6
7     // Make sure primitive type fallback doesn't work with global paths
8     let _: ::u8;
9     //~^ ERROR cannot find type `u8` in the crate root
10 }