mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
15 lines
206 B
Rust
15 lines
206 B
Rust
//@ 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() {}
|