diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-21946.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-21946.rs b/src/test/ui/issues/issue-21946.rs new file mode 100644 index 000000000..d0c052cb2 --- /dev/null +++ b/src/test/ui/issues/issue-21946.rs @@ -0,0 +1,12 @@ +trait Foo { + type A; +} + +struct FooStruct; + +impl Foo for FooStruct { + type A = <FooStruct as Foo>::A; + //~^ ERROR overflow evaluating the requirement `<FooStruct as Foo>::A == _` +} + +fn main() {} |