2016-12-15 02:12:08 +03:00
|
|
|
fn main() {
|
|
|
|
// Make sure primitive type fallback doesn't work in value namespace
|
|
|
|
std::mem::size_of(u16);
|
2016-12-01 01:35:25 +03:00
|
|
|
//~^ ERROR expected value, found builtin type `u16`
|
2023-01-05 03:02:10 +00:00
|
|
|
//~| ERROR function takes 0 arguments but 1 argument was supplied
|
2016-12-15 02:12:08 +03:00
|
|
|
|
|
|
|
// Make sure primitive type fallback doesn't work with global paths
|
|
|
|
let _: ::u8;
|
2017-01-12 01:18:08 +03:00
|
|
|
//~^ ERROR cannot find type `u8` in the crate root
|
2016-12-15 02:12:08 +03:00
|
|
|
}
|