]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/error-codes/E0223.rs
Rollup merge of #106829 - compiler-errors:more-alias-combine, r=spastorino
[rust.git] / tests / ui / error-codes / E0223.rs
index 6031b682d72a035c0310670fc662ede4bcd1fc88..2fe252de256650cf5b67b00bd1e0a28c7557572d 100644 (file)
@@ -1,4 +1,8 @@
 trait MyTrait { type X; }
+struct MyStruct;
+impl MyTrait for MyStruct {
+    type X = ();
+}
 
 fn main() {
     let foo: MyTrait::X;