summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.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/associated-type-projection-from-multiple-supertraits.stderr')
-rw-r--r--src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr100
1 files changed, 0 insertions, 100 deletions
diff --git a/src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr b/src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr
deleted file mode 100644
index e765f9323..000000000
--- a/src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr
+++ /dev/null
@@ -1,100 +0,0 @@
-error: equality constraints are not yet supported in `where` clauses
- --> $DIR/associated-type-projection-from-multiple-supertraits.rs:32:46
- |
-LL | fn dent_object_2<COLOR>(c: dyn BoxCar) where <dyn BoxCar as Vehicle>::Color = COLOR {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not supported
- |
- = note: see issue #20041 <https://github.com/rust-lang/rust/issues/20041> for more information
-
-error[E0221]: ambiguous associated type `Color` in bounds of `C`
- --> $DIR/associated-type-projection-from-multiple-supertraits.rs:19:32
- |
-LL | type Color;
- | ---------- ambiguous `Color` from `Vehicle`
-...
-LL | type Color;
- | ---------- ambiguous `Color` from `Box`
-...
-LL | fn dent<C:BoxCar>(c: C, color: C::Color) {
- | ^^^^^^^^ ambiguous associated type `Color`
- |
-help: use fully qualified syntax to disambiguate
- |
-LL | fn dent<C:BoxCar>(c: C, color: <C as Vehicle>::Color) {
- | ~~~~~~~~~~~~~~~~
-help: use fully qualified syntax to disambiguate
- |
-LL | fn dent<C:BoxCar>(c: C, color: <C as Box>::Color) {
- | ~~~~~~~~~~~~
-
-error[E0222]: ambiguous associated type `Color` in bounds of `BoxCar`
- --> $DIR/associated-type-projection-from-multiple-supertraits.rs:23:37
- |
-LL | type Color;
- | ---------- ambiguous `Color` from `Vehicle`
-...
-LL | type Color;
- | ---------- ambiguous `Color` from `Box`
-...
-LL | fn dent_object<COLOR>(c: dyn BoxCar<Color=COLOR>) {
- | ^^^^^^^^^^^ ambiguous associated type `Color`
- |
- = help: consider introducing a new type parameter `T` and adding `where` constraints:
- where
- T: BoxCar,
- T: Vehicle::Color = COLOR,
- T: Box::Color = COLOR
-
-error[E0191]: the value of the associated types `Color` (from trait `Box`), `Color` (from trait `Vehicle`) must be specified
- --> $DIR/associated-type-projection-from-multiple-supertraits.rs:23:30
- |
-LL | type Color;
- | ---------- `Vehicle::Color` defined here
-...
-LL | type Color;
- | ---------- `Box::Color` defined here
-...
-LL | fn dent_object<COLOR>(c: dyn BoxCar<Color=COLOR>) {
- | ^^^^^^^^^^^^^^^^^^^ associated types `Color` (from trait `Vehicle`), `Color` (from trait `Box`) must be specified
- |
- = help: consider introducing a new type parameter, adding `where` constraints using the fully-qualified path to the associated types
-
-error[E0221]: ambiguous associated type `Color` in bounds of `C`
- --> $DIR/associated-type-projection-from-multiple-supertraits.rs:28:29
- |
-LL | type Color;
- | ---------- ambiguous `Color` from `Vehicle`
-...
-LL | type Color;
- | ---------- ambiguous `Color` from `Box`
-...
-LL | fn paint<C:BoxCar>(c: C, d: C::Color) {
- | ^^^^^^^^ ambiguous associated type `Color`
- |
-help: use fully qualified syntax to disambiguate
- |
-LL | fn paint<C:BoxCar>(c: C, d: <C as Vehicle>::Color) {
- | ~~~~~~~~~~~~~~~~
-help: use fully qualified syntax to disambiguate
- |
-LL | fn paint<C:BoxCar>(c: C, d: <C as Box>::Color) {
- | ~~~~~~~~~~~~
-
-error[E0191]: the value of the associated types `Color` (from trait `Box`), `Color` (from trait `Vehicle`) must be specified
- --> $DIR/associated-type-projection-from-multiple-supertraits.rs:32:32
- |
-LL | type Color;
- | ---------- `Vehicle::Color` defined here
-...
-LL | type Color;
- | ---------- `Box::Color` defined here
-...
-LL | fn dent_object_2<COLOR>(c: dyn BoxCar) where <dyn BoxCar as Vehicle>::Color = COLOR {
- | ^^^^^^ associated types `Color` (from trait `Vehicle`), `Color` (from trait `Box`) must be specified
- |
- = help: consider introducing a new type parameter, adding `where` constraints using the fully-qualified path to the associated types
-
-error: aborting due to 6 previous errors
-
-Some errors have detailed explanations: E0191, E0221, E0222.
-For more information about an error, try `rustc --explain E0191`.