2020-01-29 14:34:28 -06:00
|
|
|
// run-rustfix
|
|
|
|
trait T {
|
|
|
|
type Ty;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Impl;
|
|
|
|
|
|
|
|
impl T for Impl {
|
|
|
|
type Ty = u32;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn template<T>() -> i64 {
|
|
|
|
3
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
template::<<Impl as T>::Ty>();
|
2020-02-01 13:21:54 -06:00
|
|
|
//~^ ERROR found single colon before projection in qualified path
|
2020-01-29 14:34:28 -06:00
|
|
|
}
|