summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs/struct-path-self.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/structs/struct-path-self.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/structs/struct-path-self.stderr')
-rw-r--r--src/test/ui/structs/struct-path-self.stderr80
1 files changed, 0 insertions, 80 deletions
diff --git a/src/test/ui/structs/struct-path-self.stderr b/src/test/ui/structs/struct-path-self.stderr
deleted file mode 100644
index c2a8623f9..000000000
--- a/src/test/ui/structs/struct-path-self.stderr
+++ /dev/null
@@ -1,80 +0,0 @@
-error[E0071]: expected struct, variant or union type, found type parameter `Self`
- --> $DIR/struct-path-self.rs:5:17
- |
-LL | let s = Self {};
- | ^^^^ not a struct
-
-error[E0109]: type arguments are not allowed on self type
- --> $DIR/struct-path-self.rs:7:24
- |
-LL | let z = Self::<u8> {};
- | ---- ^^ type argument not allowed
- | |
- | not allowed on self type
- |
-help: the `Self` type doesn't accept type parameters
- |
-LL - let z = Self::<u8> {};
-LL + let z = Self {};
- |
-
-error[E0071]: expected struct, variant or union type, found type parameter `Self`
- --> $DIR/struct-path-self.rs:7:17
- |
-LL | let z = Self::<u8> {};
- | ^^^^^^^^^^ not a struct
-
-error[E0071]: expected struct, variant or union type, found type parameter `Self`
- --> $DIR/struct-path-self.rs:11:13
- |
-LL | Self { .. } => {}
- | ^^^^ not a struct
-
-error[E0109]: type arguments are not allowed on self type
- --> $DIR/struct-path-self.rs:20:24
- |
-LL | let z = Self::<u8> {};
- | ---- ^^ type argument not allowed
- | |
- | not allowed on self type
- |
-note: `Self` is of type `S`
- --> $DIR/struct-path-self.rs:1:8
- |
-LL | struct S;
- | ^ `Self` corresponds to this type, which doesn't have generic parameters
-...
-LL | impl Tr for S {
- | ------------- `Self` is on type `S` in this `impl`
-help: the `Self` type doesn't accept type parameters
- |
-LL - let z = Self::<u8> {};
-LL + let z = Self {};
- |
-
-error[E0109]: type arguments are not allowed on self type
- --> $DIR/struct-path-self.rs:30:24
- |
-LL | let z = Self::<u8> {};
- | ---- ^^ type argument not allowed
- | |
- | not allowed on self type
- |
-note: `Self` is of type `S`
- --> $DIR/struct-path-self.rs:1:8
- |
-LL | struct S;
- | ^ `Self` corresponds to this type, which doesn't have generic parameters
-...
-LL | impl S {
- | ------ `Self` is on type `S` in this `impl`
-help: the `Self` type doesn't accept type parameters
- |
-LL - let z = Self::<u8> {};
-LL + let z = Self {};
- |
-
-error: aborting due to 6 previous errors
-
-Some errors have detailed explanations: E0071, E0109.
-For more information about an error, try `rustc --explain E0071`.