summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/parse/trait-path-segments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generic-associated-types/parse/trait-path-segments.rs')
-rw-r--r--src/test/ui/generic-associated-types/parse/trait-path-segments.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/test/ui/generic-associated-types/parse/trait-path-segments.rs b/src/test/ui/generic-associated-types/parse/trait-path-segments.rs
deleted file mode 100644
index 458e203eb..000000000
--- a/src/test/ui/generic-associated-types/parse/trait-path-segments.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-const _: () = {
- trait X {
- type Y<'a>;
- }
-
- fn f1<'a>(arg : Box<dyn X<X::Y = u32>>) {}
- //~^ ERROR: expected one of
- };
-
-const _: () = {
- trait X {
- type Y<'a>;
- }
-
- trait Z {}
-
- impl<T : X<<Self as X>::Y<'a> = &'a u32>> Z for T {}
- //~^ ERROR: expected one of
-};
-
-const _: () = {
- trait X {
- type Y<'a>;
- }
-
- trait Z {}
-
- impl<T : X<X::Y<'a> = &'a u32>> Z for T {}
- //~^ ERROR: expected one of
-};
-
-fn main() {}