rust/tests/ui/resolve/module-used-as-struct-constructor.rs
reddevilmidzy 1bd997a452 Cleaned up some tests
Split invalid-compile-flags into run-pass & invalid

Update tests/ui/README.md
2025-12-16 02:10:08 +09:00

6 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`
}