]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/resolve-primitive-fallback.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / 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 this 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 }