summaryrefslogtreecommitdiffstats
path: root/tests/ui/ufcs/ufcs-partially-resolved.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:20:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:20:29 +0000
commit631cd5845e8de329d0e227aaa707d7ea228b8f8f (patch)
treea1b87c8f8cad01cf18f7c5f57a08f102771ed303 /tests/ui/ufcs/ufcs-partially-resolved.rs
parentAdding debian version 1.69.0+dfsg1-1. (diff)
downloadrustc-631cd5845e8de329d0e227aaa707d7ea228b8f8f.tar.xz
rustc-631cd5845e8de329d0e227aaa707d7ea228b8f8f.zip
Merging upstream version 1.70.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/ufcs/ufcs-partially-resolved.rs')
-rw-r--r--tests/ui/ufcs/ufcs-partially-resolved.rs44
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/ui/ufcs/ufcs-partially-resolved.rs b/tests/ui/ufcs/ufcs-partially-resolved.rs
index e6470aa6d..712668728 100644
--- a/tests/ui/ufcs/ufcs-partially-resolved.rs
+++ b/tests/ui/ufcs/ufcs-partially-resolved.rs
@@ -17,37 +17,37 @@ type A = u32;
fn main() {
let _: <u8 as Tr>::N; //~ ERROR cannot find associated type `N` in trait `Tr`
- let _: <u8 as E>::N; //~ ERROR cannot find associated type `N` in enum `E`
- let _: <u8 as A>::N; //~ ERROR cannot find associated type `N` in `A`
+ let _: <u8 as E>::N; //~ ERROR expected trait, found enum `E`
+ let _: <u8 as A>::N; //~ ERROR expected trait, found type alias `A`
<u8 as Tr>::N; //~ ERROR cannot find method or associated constant `N` in trait `Tr`
- <u8 as E>::N; //~ ERROR cannot find method or associated constant `N` in enum `E`
- <u8 as A>::N; //~ ERROR cannot find method or associated constant `N` in `A`
+ <u8 as E>::N; //~ ERROR expected trait, found enum `E`
+ <u8 as A>::N; //~ ERROR expected trait, found type alias `A`
let _: <u8 as Tr>::Y; // OK
- let _: <u8 as E>::Y; //~ ERROR expected associated type, found variant `E::Y`
+ let _: <u8 as E>::Y; //~ ERROR expected trait, found enum `E`
<u8 as Tr>::Y; // OK
- <u8 as E>::Y; //~ ERROR expected method or associated constant, found unit variant `E::Y`
+ <u8 as E>::Y; //~ ERROR expected trait, found enum `E`
let _: <u8 as Tr>::N::NN; //~ ERROR cannot find associated type `N` in trait `Tr`
- let _: <u8 as E>::N::NN; //~ ERROR cannot find associated type `N` in enum `E`
- let _: <u8 as A>::N::NN; //~ ERROR cannot find associated type `N` in `A`
+ let _: <u8 as E>::N::NN; //~ ERROR expected trait, found enum `E`
+ let _: <u8 as A>::N::NN; //~ ERROR expected trait, found type alias `A`
<u8 as Tr>::N::NN; //~ ERROR cannot find associated type `N` in trait `Tr`
- <u8 as E>::N::NN; //~ ERROR cannot find associated type `N` in enum `E`
- <u8 as A>::N::NN; //~ ERROR cannot find associated type `N` in `A`
+ <u8 as E>::N::NN; //~ ERROR expected trait, found enum `E`
+ <u8 as A>::N::NN; //~ ERROR expected trait, found type alias `A`
let _: <u8 as Tr>::Y::NN; //~ ERROR ambiguous associated type
- let _: <u8 as E>::Y::NN; //~ ERROR expected associated type, found variant `E::Y`
+ let _: <u8 as E>::Y::NN; //~ ERROR expected trait, found enum `E`
<u8 as Tr>::Y::NN; //~ ERROR no associated item named `NN` found for type `u16`
- <u8 as E>::Y::NN; //~ ERROR expected associated type, found variant `E::Y`
+ <u8 as E>::Y::NN; //~ ERROR expected trait, found enum `E`
- let _: <u8 as Tr::N>::NN; //~ ERROR cannot find associated type `NN` in `Tr::N`
- let _: <u8 as E::N>::NN; //~ ERROR cannot find associated type `NN` in `E::N`
- let _: <u8 as A::N>::NN; //~ ERROR cannot find associated type `NN` in `A::N`
- <u8 as Tr::N>::NN; //~ ERROR cannot find method or associated constant `NN` in `Tr::N`
- <u8 as E::N>::NN; //~ ERROR cannot find method or associated constant `NN` in `E::N`
- <u8 as A::N>::NN; //~ ERROR cannot find method or associated constant `NN` in `A::N`
- let _: <u8 as Tr::Y>::NN; //~ ERROR cannot find associated type `NN` in `Tr::Y`
- let _: <u8 as E::Y>::NN; //~ ERROR failed to resolve: `Y` is a variant, not a module
- <u8 as Tr::Y>::NN; //~ ERROR cannot find method or associated constant `NN` in `Tr::Y`
- <u8 as E::Y>::NN; //~ ERROR failed to resolve: `Y` is a variant, not a module
+ let _: <u8 as Tr::N>::NN; //~ ERROR cannot find trait `N` in trait `Tr`
+ let _: <u8 as E::N>::NN; //~ ERROR cannot find trait `N` in enum `E`
+ let _: <u8 as A::N>::NN; //~ ERROR cannot find trait `N` in `A`
+ <u8 as Tr::N>::NN; //~ ERROR cannot find trait `N` in trait `Tr`
+ <u8 as E::N>::NN; //~ ERROR cannot find trait `N` in enum `E`
+ <u8 as A::N>::NN; //~ ERROR cannot find trait `N` in `A`
+ let _: <u8 as Tr::Y>::NN; //~ ERROR expected trait, found associated type `Tr::Y
+ let _: <u8 as E::Y>::NN; //~ ERROR expected trait, found variant `E::Y`
+ <u8 as Tr::Y>::NN; //~ ERROR expected trait, found associated type `Tr::Y`
+ <u8 as E::Y>::NN; //~ ERROR expected trait, found variant `E::Y`
let _: <u8 as Dr>::Z; //~ ERROR expected associated type, found associated function `Dr::Z`
<u8 as Dr>::X; //~ ERROR expected method or associated constant, found associated type `Dr::X`