mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
6 lines
245 B
Rust
6 lines
245 B
Rust
// Suggest the user to use double colon when there's a colon in tuple struct
|
|
|
|
struct Foo(std::string:String);
|
|
//~^ ERROR expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `:`
|
|
//~| HELP if you meant to write a path, use a double colon
|