]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-29723.rs
Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS
[rust.git] / src / test / ui / issues / issue-29723.rs
1 #![feature(nll)]
2
3 // test for https://github.com/rust-lang/rust/issues/29723
4
5 fn main() {
6     let s = String::new();
7     let _s = match 0 {
8         0 if { drop(s); false } => String::from("oops"),
9         _ => {
10             // This should trigger an error,
11             // s could have been moved from.
12             s
13             //~^ ERROR use of moved value: `s`
14         }
15     };
16 }