diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-13 14:34:47 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-13 16:55:58 -0400 |
| commit | fa84018c2ef0aa35e46f11dce87f3e0410fae9a4 (patch) | |
| tree | 82805a73ac639eb16f335902db412ce92d041dac /tests | |
| parent | 3bcdf3058ef3eaef5042661cf8301acfbcddce65 (diff) | |
Apply nits
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rustdoc/inline_cross/assoc-const-equality.rs | 1 | ||||
| -rw-r--r-- | tests/ui/associated-consts/issue-105330.rs | 4 | ||||
| -rw-r--r-- | tests/ui/associated-consts/issue-105330.stderr | 38 |
3 files changed, 7 insertions, 36 deletions
diff --git a/tests/rustdoc/inline_cross/assoc-const-equality.rs b/tests/rustdoc/inline_cross/assoc-const-equality.rs index 89ed808de62..cdf74389e76 100644 --- a/tests/rustdoc/inline_cross/assoc-const-equality.rs +++ b/tests/rustdoc/inline_cross/assoc-const-equality.rs @@ -1,5 +1,6 @@ //@ aux-crate:assoc_const_equality=assoc-const-equality.rs //@ edition:2021 +//@ ignore-test (FIXME: #125092) #![crate_name = "user"] diff --git a/tests/ui/associated-consts/issue-105330.rs b/tests/ui/associated-consts/issue-105330.rs index fb2169ab43f..959bb4fe7ac 100644 --- a/tests/ui/associated-consts/issue-105330.rs +++ b/tests/ui/associated-consts/issue-105330.rs @@ -11,7 +11,6 @@ impl TraitWAssocConst for impl Demo { //~ ERROR E0404 fn foo<A: TraitWAssocConst<A=32>>() { //~ ERROR E0658 foo::<Demo>()(); //~^ ERROR is not satisfied - //~| ERROR type mismatch //~| ERROR expected function, found `()` } @@ -19,6 +18,5 @@ fn main<A: TraitWAssocConst<A=32>>() { //~^ ERROR E0658 //~| ERROR E0131 foo::<Demo>(); - //~^ ERROR type mismatch - //~| ERROR is not satisfied + //~^ ERROR is not satisfied } diff --git a/tests/ui/associated-consts/issue-105330.stderr b/tests/ui/associated-consts/issue-105330.stderr index bde3675b48c..72527193555 100644 --- a/tests/ui/associated-consts/issue-105330.stderr +++ b/tests/ui/associated-consts/issue-105330.stderr @@ -26,7 +26,7 @@ LL | fn foo<A: TraitWAssocConst<A=32>>() { = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date error[E0658]: associated const equality is incomplete - --> $DIR/issue-105330.rs:18:29 + --> $DIR/issue-105330.rs:17:29 | LL | fn main<A: TraitWAssocConst<A=32>>() { | ^^^^ @@ -44,7 +44,7 @@ LL | impl TraitWAssocConst for impl Demo { = note: `impl Trait` is only allowed in arguments and return types of functions and methods error[E0131]: `main` function is not allowed to have generic parameters - --> $DIR/issue-105330.rs:18:8 + --> $DIR/issue-105330.rs:17:8 | LL | fn main<A: TraitWAssocConst<A=32>>() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` cannot have generic parameters @@ -61,20 +61,6 @@ note: required by a bound in `foo` LL | fn foo<A: TraitWAssocConst<A=32>>() { | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `foo` -error[E0271]: type mismatch resolving `<Demo as TraitWAssocConst>::A == 32` - --> $DIR/issue-105330.rs:12:11 - | -LL | foo::<Demo>()(); - | ^^^^ expected `32`, found `<Demo as TraitWAssocConst>::A` - | - = note: expected constant `32` - found constant `<Demo as TraitWAssocConst>::A` -note: required by a bound in `foo` - --> $DIR/issue-105330.rs:11:28 - | -LL | fn foo<A: TraitWAssocConst<A=32>>() { - | ^^^^ required by this bound in `foo` - error[E0618]: expected function, found `()` --> $DIR/issue-105330.rs:12:5 | @@ -86,7 +72,7 @@ LL | foo::<Demo>()(); | call expression requires function error[E0277]: the trait bound `Demo: TraitWAssocConst` is not satisfied - --> $DIR/issue-105330.rs:21:11 + --> $DIR/issue-105330.rs:20:11 | LL | foo::<Demo>(); | ^^^^ the trait `TraitWAssocConst` is not implemented for `Demo` @@ -97,21 +83,7 @@ note: required by a bound in `foo` LL | fn foo<A: TraitWAssocConst<A=32>>() { | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `foo` -error[E0271]: type mismatch resolving `<Demo as TraitWAssocConst>::A == 32` - --> $DIR/issue-105330.rs:21:11 - | -LL | foo::<Demo>(); - | ^^^^ expected `32`, found `<Demo as TraitWAssocConst>::A` - | - = note: expected constant `32` - found constant `<Demo as TraitWAssocConst>::A` -note: required by a bound in `foo` - --> $DIR/issue-105330.rs:11:28 - | -LL | fn foo<A: TraitWAssocConst<A=32>>() { - | ^^^^ required by this bound in `foo` - -error: aborting due to 11 previous errors +error: aborting due to 9 previous errors -Some errors have detailed explanations: E0131, E0271, E0277, E0404, E0562, E0618, E0658. +Some errors have detailed explanations: E0131, E0277, E0404, E0562, E0618, E0658. For more information about an error, try `rustc --explain E0131`. |
