about summary refs log tree commit diff
path: root/tests/crashes/134838.rs
blob: ac8af09b31bbde44f97653abf7d7a4fa6f4a8592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ known-bug: #134838
#![feature(type_ascription)]
#![allow(dead_code)]

struct Ty(());

fn mk() -> impl Sized {
    if false {
         let _ = type_ascribe!(mk(), Ty).0;
    }
    Ty(())
}

fn main() {}