summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/coerce-unsafe-to-closure.rs
blob: 78bdd36f9cc3ae50621c43da8b7409c43cb6c6d5 (plain)
1
2
3
4
fn main() {
    let x: Option<&[u8]> = Some("foo").map(std::mem::transmute);
    //~^ ERROR E0277
}