2022-11-21 09:03:33 +08:00
|
|
|
fn foo() {
|
|
|
|
oops;
|
|
|
|
//~^ ERROR: cannot find value `oops` in this scope
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe fn bar() {
|
|
|
|
std::mem::transmute::<_, *mut _>(1_u8);
|
2024-01-31 16:24:07 +00:00
|
|
|
//~^ ERROR: type annotations needed
|
2022-11-21 09:03:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|