]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-inherent-types/assoc-inherent-use.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[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 }