Sign in
rust
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
parser
/
colon-in-tuple-struct.rs
blob: 2ed0d0fbc11a499701187ce955ce7d31e12df3e5 [
file
] [
edit
]
// 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