blob: 939a4ff60f2bb2fbdce77e970d8d2d68d915dfc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![feature(inherent_associated_types)]
#![allow(incomplete_features)]
struct S<T>(T);
impl<T> S<T> { type P = (); }
fn main() {
// There is no way to infer this type.
let _: S<_>::P = (); //~ ERROR type annotations needed
}
|