mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
1bd997a452
Split invalid-compile-flags into run-pass & invalid Update tests/ui/README.md
7 lines
289 B
Rust
7 lines
289 B
Rust
//! regression test for https://github.com/rust-lang/rust/issues/17001, https://github.com/rust-lang/rust/issues/21449, https://github.com/rust-lang/rust/issues/23189
|
|
mod foo {}
|
|
|
|
fn main() {
|
|
let p = foo { x: () }; //~ ERROR expected struct, variant or union type, found module `foo`
|
|
}
|