about summary refs log tree commit diff
path: root/tests/ui/consts/issue-104609.rs
blob: 9ee83b409c16f3f0e6daeb8762a97a41b6039c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
fn foo() {
    oops;
    //~^ ERROR: cannot find value `oops` in this scope
}

unsafe fn bar() {
    std::mem::transmute::<_, *mut _>(1_u8);
    //~^ ERROR: type annotations needed
}

fn main() {}