]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-consts/mismatched_impl_ty_2.rs
add tests for 107090
[rust.git] / tests / ui / associated-consts / mismatched_impl_ty_2.rs
1 // run-pass
2 trait Trait {
3     const ASSOC: fn(&'static u32);
4 }
5 impl Trait for () {
6     const ASSOC: for<'a> fn(&'a u32) = |_| ();
7 }
8
9 fn main() {
10     let _ = <() as Trait>::ASSOC;
11 }