mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
7 lines
316 B
Rust
7 lines
316 B
Rust
// Provide diagnostics when the user writes field names in tuple struct.(issue#144595)
|
|
|
|
struct Foo(a:u8,b:u8);
|
|
//~^ ERROR expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `:`
|
|
//~| HELP if you meant to write a path, use a double colon:
|
|
//~| HELP if you meant to create a regular struct, use curly braces:
|