2022-12-05 18:13:32 -06:00
|
|
|
error: expected one of `!` or `::`, found `A`
|
|
|
|
--> $DIR/issue-105330.rs:8:14
|
|
|
|
|
|
|
|
|
LL | impl TraitWAssocConst for impl Demo {
|
|
|
|
| - while parsing this item list starting here
|
|
|
|
LL |
|
|
|
|
LL | pubconst A: str = 32;
|
|
|
|
| ^ expected one of `!` or `::`
|
|
|
|
LL | }
|
|
|
|
| - the item list ends here
|
|
|
|
|
|
|
|
error[E0404]: expected trait, found struct `Demo`
|
|
|
|
--> $DIR/issue-105330.rs:6:32
|
|
|
|
|
|
|
|
|
LL | impl TraitWAssocConst for impl Demo {
|
|
|
|
| ^^^^ not a trait
|
|
|
|
|
|
|
|
error[E0658]: associated const equality is incomplete
|
|
|
|
--> $DIR/issue-105330.rs:11:28
|
|
|
|
|
|
|
|
|
LL | fn foo<A: TraitWAssocConst<A=32>>() {
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
|
|
|
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: associated const equality is incomplete
|
2023-10-18 03:47:17 -05:00
|
|
|
--> $DIR/issue-105330.rs:15:29
|
2022-12-05 18:13:32 -06:00
|
|
|
|
|
|
|
|
LL | fn main<A: TraitWAssocConst<A=32>>() {
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
|
|
|
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
|
|
|
|
|
2023-10-04 14:51:43 -05:00
|
|
|
error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in impl headers
|
2022-12-05 18:13:32 -06:00
|
|
|
--> $DIR/issue-105330.rs:6:27
|
|
|
|
|
|
|
|
|
LL | impl TraitWAssocConst for impl Demo {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-10-25 05:49:24 -05:00
|
|
|
error[E0131]: `main` function is not allowed to have generic parameters
|
|
|
|
--> $DIR/issue-105330.rs:15:8
|
|
|
|
|
|
|
|
|
LL | fn main<A: TraitWAssocConst<A=32>>() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` cannot have generic parameters
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2022-12-05 18:13:32 -06:00
|
|
|
|
2023-10-25 05:49:24 -05:00
|
|
|
Some errors have detailed explanations: E0131, E0404, E0562, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0131`.
|