]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/issue-93835.stderr
Rollup merge of #100192 - tmiasko:rm-duplicated-locals, r=nagisa
[rust.git] / src / test / ui / associated-consts / issue-93835.stderr
1 error: comparison operators cannot be chained
2   --> $DIR/issue-93835.rs:2:8
3    |
4 LL | fn e() {
5    |        - while parsing this struct
6 LL |     p:a<p:p<e=6>>
7    |        ^        ^
8    |
9    = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
10    = help: or use `(...)` if you meant to specify fn arguments
11
12 error[E0425]: cannot find value `p` in this scope
13   --> $DIR/issue-93835.rs:2:5
14    |
15 LL |     p:a<p:p<e=6>>
16    |     ^ not found in this scope
17    |
18 help: you might have meant to write a `struct` literal
19    |
20 LL ~ fn e() { SomeStruct {
21 LL |     p:a<p:p<e=6>>
22  ...
23 LL |
24 LL ~ }}
25    |
26 help: maybe you meant to write a path separator here
27    |
28 LL |     p::a<p:p<e=6>>
29    |      ~~
30 help: maybe you meant to write an assignment here
31    |
32 LL |     let p:a<p:p<e=6>>
33    |     ~~~~~
34
35 error[E0658]: associated const equality is incomplete
36   --> $DIR/issue-93835.rs:2:13
37    |
38 LL |     p:a<p:p<e=6>>
39    |             ^^^
40    |
41    = note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
42    = help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
43
44 error[E0658]: associated const equality is incomplete
45   --> $DIR/issue-93835.rs:2:13
46    |
47 LL |     p:a<p:p<e=6>>
48    |             ^^^
49    |
50    = note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
51    = help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
52
53 error[E0658]: associated type bounds are unstable
54   --> $DIR/issue-93835.rs:2:9
55    |
56 LL |     p:a<p:p<e=6>>
57    |         ^^^^^^^^
58    |
59    = note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information
60    = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable
61
62 error: aborting due to 5 previous errors
63
64 Some errors have detailed explanations: E0425, E0658.
65 For more information about an error, try `rustc --explain E0425`.