]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/user-annotations/normalization.rs
e0af2e67e1836f4f9a874fa3d1aa306b1cc3bea8
[rust.git] / src / test / ui / nll / user-annotations / normalization.rs
1 // Test that we enforce a `&'static` requirement that is only visible
2 // after normalization.
3
4 #![feature(nll)]
5
6 trait Foo { type Out; }
7 impl Foo for () { type Out = &'static u32; }
8
9 fn main() {
10     let a = 22;
11     let b: <() as Foo>::Out = &a; //~ ERROR
12 }