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

fn return_str()
where
    str: Sized,
{
    [(); { let _a: Option<str> = None; 0 }];
    //~^ ERROR entering unreachable code
    //~| NOTE evaluation of `return_str::{constant#0}` failed here
}

fn main() {}