diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-26614.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-26614.rs b/src/test/ui/issues/issue-26614.rs new file mode 100644 index 000000000..b8ebbdc5a --- /dev/null +++ b/src/test/ui/issues/issue-26614.rs @@ -0,0 +1,14 @@ +// check-pass + +trait Mirror { + type It; +} + +impl<T> Mirror for T { + type It = Self; +} + +fn main() { + let c: <u32 as Mirror>::It = 5; + const CCCC: <u32 as Mirror>::It = 5; +} |