rust/src/test/ui/expr-block-unique.rs
Bastian Kauschke 698b20eeda update tests
2020-03-31 19:01:49 +02:00

6 lines
130 B
Rust

// run-pass
#![allow(unused_braces)]
#![feature(box_syntax)]
pub fn main() { let x: Box<_> = { box 100 }; assert_eq!(*x, 100); }