summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.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/suggestions/trait-with-missing-associated-type-restriction-fixable.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/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr')
-rw-r--r--src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr143
1 files changed, 0 insertions, 143 deletions
diff --git a/src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr b/src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr
deleted file mode 100644
index ac839ff7e..000000000
--- a/src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr
+++ /dev/null
@@ -1,143 +0,0 @@
-error[E0308]: mismatched types
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:13:13
- |
-LL | qux(x.func())
- | --- ^^^^^^^^ expected `usize`, found associated type
- | |
- | arguments to this function are incorrect
- |
- = note: expected type `usize`
- found associated type `<impl Trait as Trait>::A`
-note: function defined here
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:41:4
- |
-LL | fn qux(_: usize) {}
- | ^^^ --------
-help: consider constraining the associated type `<impl Trait as Trait>::A` to `usize`
- |
-LL | fn foo<'a, T: Trait + 'a>(&self, _: impl Trait, x: impl Trait<A = usize>, _: T) {
- | +++++++++++
-
-error[E0308]: mismatched types
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:17:13
- |
-LL | qux(x.func())
- | --- ^^^^^^^^ expected `usize`, found associated type
- | |
- | arguments to this function are incorrect
- |
- = note: expected type `usize`
- found associated type `<T as Trait>::A`
-note: function defined here
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:41:4
- |
-LL | fn qux(_: usize) {}
- | ^^^ --------
-help: consider constraining the associated type `<T as Trait>::A` to `usize`
- |
-LL | fn ban<T>(x: T) where T: Trait<A = usize> {
- | +++++++++++
-
-error[E0308]: mismatched types
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:22:9
- |
-LL | qux(x.func())
- | --- ^^^^^^^^ expected `usize`, found associated type
- | |
- | arguments to this function are incorrect
- |
- = note: expected type `usize`
- found associated type `<impl Trait as Trait>::A`
-note: function defined here
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:41:4
- |
-LL | fn qux(_: usize) {}
- | ^^^ --------
-help: consider constraining the associated type `<impl Trait as Trait>::A` to `usize`
- |
-LL | fn foo<'a, T: Trait + 'a>(_: impl Trait, x: impl Trait<A = usize>, _: T) {
- | +++++++++++
-
-error[E0308]: mismatched types
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:26:9
- |
-LL | qux(x.func())
- | --- ^^^^^^^^ expected `usize`, found associated type
- | |
- | arguments to this function are incorrect
- |
- = note: expected type `usize`
- found associated type `<T as Trait>::A`
-note: function defined here
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:41:4
- |
-LL | fn qux(_: usize) {}
- | ^^^ --------
-help: consider constraining the associated type `<T as Trait>::A` to `usize`
- |
-LL | fn bar<T: Trait<A = usize>>(x: T) {
- | +++++++++++
-
-error[E0308]: mismatched types
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:30:9
- |
-LL | qux(x.func())
- | --- ^^^^^^^^ expected `usize`, found associated type
- | |
- | arguments to this function are incorrect
- |
- = note: expected type `usize`
- found associated type `<impl Trait<i32> as Trait<i32>>::A`
-note: function defined here
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:41:4
- |
-LL | fn qux(_: usize) {}
- | ^^^ --------
-help: consider constraining the associated type `<impl Trait<i32> as Trait<i32>>::A` to `usize`
- |
-LL | fn foo2(x: impl Trait<i32, A = usize>) {
- | +++++++++++
-
-error[E0308]: mismatched types
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:34:9
- |
-LL | qux(x.func())
- | --- ^^^^^^^^ expected `usize`, found associated type
- | |
- | arguments to this function are incorrect
- |
- = note: expected type `usize`
- found associated type `<T as Trait<i32>>::A`
-note: function defined here
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:41:4
- |
-LL | fn qux(_: usize) {}
- | ^^^ --------
-help: consider constraining the associated type `<T as Trait<i32>>::A` to `usize`
- |
-LL | fn bar2<T: Trait<i32, A = usize>>(x: T) {
- | +++++++++++
-
-error[E0308]: mismatched types
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:38:9
- |
-LL | qux(x.func())
- | --- ^^^^^^^^ expected `usize`, found associated type
- | |
- | arguments to this function are incorrect
- |
- = note: expected type `usize`
- found associated type `<T as Trait>::A`
-note: function defined here
- --> $DIR/trait-with-missing-associated-type-restriction-fixable.rs:41:4
- |
-LL | fn qux(_: usize) {}
- | ^^^ --------
-help: consider constraining the associated type `<T as Trait>::A` to `usize`
- |
-LL | fn ban<T>(x: T) where T: Trait<A = usize> {
- | +++++++++++
-
-error: aborting due to 7 previous errors
-
-For more information about this error, try `rustc --explain E0308`.