summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-83182.rs
blob: 2536d2f08f288864cdcad95ded56a105f2fc8f2f (plain)
1
2
3
4
5
6
7
// stderr-per-bitwidth

use std::mem;
struct MyStr(str);
const MYSTR_NO_INIT: &MyStr = unsafe { mem::transmute::<&[_], _>(&[&()]) };
//~^ ERROR: it is undefined behavior to use this value
fn main() {}