rust/tests/ui/parser/bad-name.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
255 B
Rust
Raw Normal View History

2011-07-27 14:48:34 +02:00
fn main() {
let x.y::<isize>.z foo;
2024-07-04 14:10:17 +02:00
//~^ error: field expressions cannot have generic arguments
//~| error: expected a pattern, found an expression
//~| error: expected one of `(`, `.`, `::`, `:`, `;`, `=`, `?`, `|`, or an operator, found `foo`
2011-07-27 14:48:34 +02:00
}