summary refs log tree commit diff
path: root/tests/ui/layout/uncomputable-due-to-trivial-bounds-ice-135138.rs
blob: 4423b83e24d47438430af25685614ce30f9132a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(trivial_bounds)]

fn return_str()
where
    str: Sized,
{
    [(); { let _a: Option<str> = None; 0 }];
    //~^ ERROR the type `Option<str>` has an unknown layout
}

fn main() {}