]> git.lizzy.rs Git - rust.git/blob - tests/ui/error-codes/E0223.rs
Rollup merge of #106835 - compiler-errors:new-solver-gat-rebase-oops, r=lcnr
[rust.git] / tests / ui / error-codes / E0223.rs
1 trait MyTrait { type X; }
2 struct MyStruct;
3 impl MyTrait for MyStruct {
4     type X = ();
5 }
6
7 fn main() {
8     let foo: MyTrait::X;
9     //~^ ERROR ambiguous associated type
10 }