diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/associated-consts/issue-93835.stderr | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/associated-consts/issue-93835.stderr')
-rw-r--r-- | src/test/ui/associated-consts/issue-93835.stderr | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/test/ui/associated-consts/issue-93835.stderr b/src/test/ui/associated-consts/issue-93835.stderr new file mode 100644 index 000000000..0406a16a3 --- /dev/null +++ b/src/test/ui/associated-consts/issue-93835.stderr @@ -0,0 +1,65 @@ +error: comparison operators cannot be chained + --> $DIR/issue-93835.rs:2:8 + | +LL | fn e() { + | - while parsing this struct +LL | p:a<p:p<e=6>> + | ^ ^ + | + = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments + = help: or use `(...)` if you meant to specify fn arguments + +error[E0425]: cannot find value `p` in this scope + --> $DIR/issue-93835.rs:2:5 + | +LL | p:a<p:p<e=6>> + | ^ not found in this scope + | +help: you might have meant to write a `struct` literal + | +LL ~ fn e() { SomeStruct { +LL | p:a<p:p<e=6>> + ... +LL | +LL ~ }} + | +help: maybe you meant to write a path separator here + | +LL | p::a<p:p<e=6>> + | ~~ +help: maybe you meant to write an assignment here + | +LL | let p:a<p:p<e=6>> + | ~~~~~ + +error[E0658]: associated const equality is incomplete + --> $DIR/issue-93835.rs:2:13 + | +LL | p:a<p:p<e=6>> + | ^^^ + | + = 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 + --> $DIR/issue-93835.rs:2:13 + | +LL | p:a<p:p<e=6>> + | ^^^ + | + = 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 type bounds are unstable + --> $DIR/issue-93835.rs:2:9 + | +LL | p:a<p:p<e=6>> + | ^^^^^^^^ + | + = note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information + = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable + +error: aborting due to 5 previous errors + +Some errors have detailed explanations: E0425, E0658. +For more information about an error, try `rustc --explain E0425`. |