mirror of https://github.com/rust-lang/rust
20 lines
730 B
Plaintext
20 lines
730 B
Plaintext
error[E0575]: expected method or associated constant, found associated type `A::Assoc`
|
|
--> $DIR/associated-type-tuple-struct-construction.rs:7:32
|
|
|
|
|
LL | let <Foo as A>::Assoc(n) = <Foo as A>::Assoc(2);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: can't use a type alias as a constructor
|
|
|
|
error[E0575]: expected method or associated constant, found associated type `A::Assoc`
|
|
--> $DIR/associated-type-tuple-struct-construction.rs:7:9
|
|
|
|
|
LL | let <Foo as A>::Assoc(n) = <Foo as A>::Assoc(2);
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: can't use a type alias as a constructor
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0575`.
|