Files
rust/tests/ui/parser/colon-in-tuple-struct.rs
2026-06-02 23:00:47 +08:00

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