diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/associated-types/defaults-in-other-trait-items.stderr | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-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/associated-types/defaults-in-other-trait-items.stderr')
-rw-r--r-- | src/test/ui/associated-types/defaults-in-other-trait-items.stderr | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/ui/associated-types/defaults-in-other-trait-items.stderr b/src/test/ui/associated-types/defaults-in-other-trait-items.stderr deleted file mode 100644 index 71d421926..000000000 --- a/src/test/ui/associated-types/defaults-in-other-trait-items.stderr +++ /dev/null @@ -1,29 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/defaults-in-other-trait-items.rs:9:13 - | -LL | type A = (); - | ------------ associated type defaults can't be assumed inside the trait defining them -... -LL | let () = p; - | ^^ - this expression has type `<Self as Tr>::A` - | | - | expected associated type, found `()` - | - = note: expected associated type `<Self as Tr>::A` - found unit type `()` - -error[E0308]: mismatched types - --> $DIR/defaults-in-other-trait-items.rs:36:25 - | -LL | type Ty = u8; - | ------------- associated type defaults can't be assumed inside the trait defining them -... -LL | const C: Self::Ty = 0u8; - | ^^^ expected associated type, found `u8` - | - = note: expected associated type `<Self as AssocConst>::Ty` - found type `u8` - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0308`. |