diff options
Diffstat (limited to 'src/test/ui/parser/type-parameters-in-field-exprs.rs')
-rw-r--r-- | src/test/ui/parser/type-parameters-in-field-exprs.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/parser/type-parameters-in-field-exprs.rs b/src/test/ui/parser/type-parameters-in-field-exprs.rs deleted file mode 100644 index 4cd77ebbd..000000000 --- a/src/test/ui/parser/type-parameters-in-field-exprs.rs +++ /dev/null @@ -1,17 +0,0 @@ -struct Foo { - x: isize, - y: isize, -} - -fn main() { - let f = Foo { - x: 1, - y: 2, - }; - f.x::<isize>; - //~^ ERROR field expressions cannot have generic arguments - f.x::<>; - //~^ ERROR field expressions cannot have generic arguments - f.x::(); - //~^ ERROR field expressions cannot have generic arguments -} |