]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-inherent-types/assoc-inherent-use.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / associated-inherent-types / assoc-inherent-use.rs
1 // check-pass
2 #![feature(inherent_associated_types)]
3 #![allow(incomplete_features)]
4
5 struct Foo;
6
7 impl Foo {
8     type Bar = isize;
9 }
10
11 fn main() {
12     let x: Foo::Bar;
13     x = 0isize;
14 }