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 /tests/ui/impl-trait/in-trait | |
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 '')
-rw-r--r-- | tests/ui/impl-trait/in-trait/auxiliary/rpitit.rs (renamed from src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/box-coerce-span-in-default.rs | 49 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/box-coerce-span-in-default.stderr | 11 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/deep-match-works.rs (renamed from src/test/ui/impl-trait/in-trait/deep-match-works.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/deep-match.rs (renamed from src/test/ui/impl-trait/in-trait/deep-match.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/deep-match.stderr (renamed from src/test/ui/impl-trait/in-trait/deep-match.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/default-body-type-err-2.rs (renamed from src/test/ui/impl-trait/in-trait/default-body-type-err-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/default-body-type-err-2.stderr (renamed from src/test/ui/impl-trait/in-trait/default-body-type-err-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/default-body-type-err.rs (renamed from src/test/ui/impl-trait/in-trait/default-body-type-err.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/default-body-type-err.stderr (renamed from src/test/ui/impl-trait/in-trait/default-body-type-err.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/default-body-with-rpit.rs (renamed from src/test/ui/impl-trait/in-trait/default-body-with-rpit.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/default-body.rs (renamed from src/test/ui/impl-trait/in-trait/default-body.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/doesnt-satisfy.rs (renamed from src/test/ui/impl-trait/in-trait/doesnt-satisfy.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/doesnt-satisfy.stderr (renamed from src/test/ui/impl-trait/in-trait/doesnt-satisfy.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/early.rs (renamed from src/test/ui/impl-trait/in-trait/early.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/encode.rs (renamed from src/test/ui/impl-trait/in-trait/encode.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/foreign.rs (renamed from src/test/ui/impl-trait/in-trait/foreign.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/generics-mismatch.rs (renamed from src/test/ui/impl-trait/in-trait/generics-mismatch.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/generics-mismatch.stderr (renamed from src/test/ui/impl-trait/in-trait/generics-mismatch.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/issue-102140.rs (renamed from src/test/ui/impl-trait/in-trait/issue-102140.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/issue-102140.stderr (renamed from src/test/ui/impl-trait/in-trait/issue-102140.stderr) | 12 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/issue-102301.rs (renamed from src/test/ui/impl-trait/in-trait/issue-102301.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/issue-102571.rs (renamed from src/test/ui/impl-trait/in-trait/issue-102571.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/issue-102571.stderr (renamed from src/test/ui/impl-trait/in-trait/issue-102571.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/method-signature-matches.rs (renamed from src/test/ui/impl-trait/in-trait/method-signature-matches.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/method-signature-matches.stderr (renamed from src/test/ui/impl-trait/in-trait/method-signature-matches.stderr) | 12 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/nested-rpitit.rs (renamed from src/test/ui/impl-trait/in-trait/nested-rpitit.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/object-safety.rs (renamed from src/test/ui/impl-trait/in-trait/object-safety.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/object-safety.stderr (renamed from src/test/ui/impl-trait/in-trait/object-safety.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs (renamed from src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr (renamed from src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/opaque-in-impl.rs (renamed from src/test/ui/impl-trait/in-trait/opaque-in-impl.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/reveal.rs (renamed from src/test/ui/impl-trait/in-trait/reveal.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/signature-mismatch.rs (renamed from src/test/ui/impl-trait/in-trait/signature-mismatch.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/signature-mismatch.stderr (renamed from src/test/ui/impl-trait/in-trait/signature-mismatch.stderr) | 4 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/specialization-broken.rs (renamed from src/test/ui/impl-trait/in-trait/specialization-broken.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/specialization-broken.stderr (renamed from src/test/ui/impl-trait/in-trait/specialization-broken.stderr) | 4 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/specialization-substs-remap.rs (renamed from src/test/ui/impl-trait/in-trait/specialization-substs-remap.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/success.rs (renamed from src/test/ui/impl-trait/in-trait/success.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs (renamed from src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr (renamed from src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/wf-bounds.rs (renamed from src/test/ui/impl-trait/in-trait/wf-bounds.rs) | 0 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/wf-bounds.stderr (renamed from src/test/ui/impl-trait/in-trait/wf-bounds.stderr) | 3 | ||||
-rw-r--r-- | tests/ui/impl-trait/in-trait/where-clause.rs (renamed from src/test/ui/impl-trait/in-trait/where-clause.rs) | 0 |
44 files changed, 78 insertions, 17 deletions
diff --git a/src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs b/tests/ui/impl-trait/in-trait/auxiliary/rpitit.rs index 74df300f8..74df300f8 100644 --- a/src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs +++ b/tests/ui/impl-trait/in-trait/auxiliary/rpitit.rs diff --git a/tests/ui/impl-trait/in-trait/box-coerce-span-in-default.rs b/tests/ui/impl-trait/in-trait/box-coerce-span-in-default.rs new file mode 100644 index 000000000..a4d483dee --- /dev/null +++ b/tests/ui/impl-trait/in-trait/box-coerce-span-in-default.rs @@ -0,0 +1,49 @@ +// check-pass + +#![feature(return_position_impl_trait_in_trait)] +//~^ WARN the feature `return_position_impl_trait_in_trait` is incomplete + +struct TestA {} +struct TestB {} + +impl TestTrait for TestA { + type Output = (); +} +impl TestTrait for TestB { + type Output = (); +} + +trait TestTrait { + type Output; +} + +impl<A, B> TestTrait for GreeterOutput<A, B> +where + A: TestTrait<Output = ()>, + B: TestTrait<Output = ()>, +{ + type Output = (); +} + +enum GreeterOutput<A, B> +where + A: TestTrait<Output = ()>, + B: TestTrait<Output = ()>, +{ + SayHello(A), + SayGoodbye(B), +} + +trait Greeter { + fn test_func(&self, func: &str) -> impl TestTrait<Output = ()> { + match func { + "SayHello" => GreeterOutput::SayHello(TestA {}), + "SayGoodbye" => GreeterOutput::SayGoodbye(TestB {}), + _ => GreeterOutput::SayHello(TestA {}), + } + } +} + +fn main() { + println!("Hello, world!"); +} diff --git a/tests/ui/impl-trait/in-trait/box-coerce-span-in-default.stderr b/tests/ui/impl-trait/in-trait/box-coerce-span-in-default.stderr new file mode 100644 index 000000000..d681ecf25 --- /dev/null +++ b/tests/ui/impl-trait/in-trait/box-coerce-span-in-default.stderr @@ -0,0 +1,11 @@ +warning: the feature `return_position_impl_trait_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes + --> $DIR/box-coerce-span-in-default.rs:3:12 + | +LL | #![feature(return_position_impl_trait_in_trait)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information + = note: `#[warn(incomplete_features)]` on by default + +warning: 1 warning emitted + diff --git a/src/test/ui/impl-trait/in-trait/deep-match-works.rs b/tests/ui/impl-trait/in-trait/deep-match-works.rs index 772da845e..772da845e 100644 --- a/src/test/ui/impl-trait/in-trait/deep-match-works.rs +++ b/tests/ui/impl-trait/in-trait/deep-match-works.rs diff --git a/src/test/ui/impl-trait/in-trait/deep-match.rs b/tests/ui/impl-trait/in-trait/deep-match.rs index a6385147c..a6385147c 100644 --- a/src/test/ui/impl-trait/in-trait/deep-match.rs +++ b/tests/ui/impl-trait/in-trait/deep-match.rs diff --git a/src/test/ui/impl-trait/in-trait/deep-match.stderr b/tests/ui/impl-trait/in-trait/deep-match.stderr index 034ee5ea4..034ee5ea4 100644 --- a/src/test/ui/impl-trait/in-trait/deep-match.stderr +++ b/tests/ui/impl-trait/in-trait/deep-match.stderr diff --git a/src/test/ui/impl-trait/in-trait/default-body-type-err-2.rs b/tests/ui/impl-trait/in-trait/default-body-type-err-2.rs index 45ae2b8ad..45ae2b8ad 100644 --- a/src/test/ui/impl-trait/in-trait/default-body-type-err-2.rs +++ b/tests/ui/impl-trait/in-trait/default-body-type-err-2.rs diff --git a/src/test/ui/impl-trait/in-trait/default-body-type-err-2.stderr b/tests/ui/impl-trait/in-trait/default-body-type-err-2.stderr index 142b1bff1..142b1bff1 100644 --- a/src/test/ui/impl-trait/in-trait/default-body-type-err-2.stderr +++ b/tests/ui/impl-trait/in-trait/default-body-type-err-2.stderr diff --git a/src/test/ui/impl-trait/in-trait/default-body-type-err.rs b/tests/ui/impl-trait/in-trait/default-body-type-err.rs index ac9baf91c..ac9baf91c 100644 --- a/src/test/ui/impl-trait/in-trait/default-body-type-err.rs +++ b/tests/ui/impl-trait/in-trait/default-body-type-err.rs diff --git a/src/test/ui/impl-trait/in-trait/default-body-type-err.stderr b/tests/ui/impl-trait/in-trait/default-body-type-err.stderr index 461247a3e..461247a3e 100644 --- a/src/test/ui/impl-trait/in-trait/default-body-type-err.stderr +++ b/tests/ui/impl-trait/in-trait/default-body-type-err.stderr diff --git a/src/test/ui/impl-trait/in-trait/default-body-with-rpit.rs b/tests/ui/impl-trait/in-trait/default-body-with-rpit.rs index ad3cc7c25..ad3cc7c25 100644 --- a/src/test/ui/impl-trait/in-trait/default-body-with-rpit.rs +++ b/tests/ui/impl-trait/in-trait/default-body-with-rpit.rs diff --git a/src/test/ui/impl-trait/in-trait/default-body.rs b/tests/ui/impl-trait/in-trait/default-body.rs index b0baf5bb1..b0baf5bb1 100644 --- a/src/test/ui/impl-trait/in-trait/default-body.rs +++ b/tests/ui/impl-trait/in-trait/default-body.rs diff --git a/src/test/ui/impl-trait/in-trait/doesnt-satisfy.rs b/tests/ui/impl-trait/in-trait/doesnt-satisfy.rs index bb4e0d44f..bb4e0d44f 100644 --- a/src/test/ui/impl-trait/in-trait/doesnt-satisfy.rs +++ b/tests/ui/impl-trait/in-trait/doesnt-satisfy.rs diff --git a/src/test/ui/impl-trait/in-trait/doesnt-satisfy.stderr b/tests/ui/impl-trait/in-trait/doesnt-satisfy.stderr index aa5492d28..aa5492d28 100644 --- a/src/test/ui/impl-trait/in-trait/doesnt-satisfy.stderr +++ b/tests/ui/impl-trait/in-trait/doesnt-satisfy.stderr diff --git a/src/test/ui/impl-trait/in-trait/early.rs b/tests/ui/impl-trait/in-trait/early.rs index 9c1c2b503..9c1c2b503 100644 --- a/src/test/ui/impl-trait/in-trait/early.rs +++ b/tests/ui/impl-trait/in-trait/early.rs diff --git a/src/test/ui/impl-trait/in-trait/encode.rs b/tests/ui/impl-trait/in-trait/encode.rs index efb9f6498..efb9f6498 100644 --- a/src/test/ui/impl-trait/in-trait/encode.rs +++ b/tests/ui/impl-trait/in-trait/encode.rs diff --git a/src/test/ui/impl-trait/in-trait/foreign.rs b/tests/ui/impl-trait/in-trait/foreign.rs index 6341f5b42..6341f5b42 100644 --- a/src/test/ui/impl-trait/in-trait/foreign.rs +++ b/tests/ui/impl-trait/in-trait/foreign.rs diff --git a/src/test/ui/impl-trait/in-trait/generics-mismatch.rs b/tests/ui/impl-trait/in-trait/generics-mismatch.rs index cc0fc720e..cc0fc720e 100644 --- a/src/test/ui/impl-trait/in-trait/generics-mismatch.rs +++ b/tests/ui/impl-trait/in-trait/generics-mismatch.rs diff --git a/src/test/ui/impl-trait/in-trait/generics-mismatch.stderr b/tests/ui/impl-trait/in-trait/generics-mismatch.stderr index cd42683e0..cd42683e0 100644 --- a/src/test/ui/impl-trait/in-trait/generics-mismatch.stderr +++ b/tests/ui/impl-trait/in-trait/generics-mismatch.stderr diff --git a/src/test/ui/impl-trait/in-trait/issue-102140.rs b/tests/ui/impl-trait/in-trait/issue-102140.rs index be1e012ac..be1e012ac 100644 --- a/src/test/ui/impl-trait/in-trait/issue-102140.rs +++ b/tests/ui/impl-trait/in-trait/issue-102140.rs diff --git a/src/test/ui/impl-trait/in-trait/issue-102140.stderr b/tests/ui/impl-trait/in-trait/issue-102140.stderr index 08602185f..18bb63745 100644 --- a/src/test/ui/impl-trait/in-trait/issue-102140.stderr +++ b/tests/ui/impl-trait/in-trait/issue-102140.stderr @@ -2,11 +2,15 @@ error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied --> $DIR/issue-102140.rs:23:22 | LL | MyTrait::foo(&self) - | ------------ -^^^^ - | | | - | | the trait `MyTrait` is not implemented for `&dyn MyTrait` - | | help: consider removing the leading `&`-reference + | ------------ ^^^^^ the trait `MyTrait` is not implemented for `&dyn MyTrait` + | | | required by a bound introduced by this call + | +help: consider removing the leading `&`-reference + | +LL - MyTrait::foo(&self) +LL + MyTrait::foo(self) + | error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied --> $DIR/issue-102140.rs:23:9 diff --git a/src/test/ui/impl-trait/in-trait/issue-102301.rs b/tests/ui/impl-trait/in-trait/issue-102301.rs index a93714a65..a93714a65 100644 --- a/src/test/ui/impl-trait/in-trait/issue-102301.rs +++ b/tests/ui/impl-trait/in-trait/issue-102301.rs diff --git a/src/test/ui/impl-trait/in-trait/issue-102571.rs b/tests/ui/impl-trait/in-trait/issue-102571.rs index 61c91e644..61c91e644 100644 --- a/src/test/ui/impl-trait/in-trait/issue-102571.rs +++ b/tests/ui/impl-trait/in-trait/issue-102571.rs diff --git a/src/test/ui/impl-trait/in-trait/issue-102571.stderr b/tests/ui/impl-trait/in-trait/issue-102571.stderr index 87219941d..87219941d 100644 --- a/src/test/ui/impl-trait/in-trait/issue-102571.stderr +++ b/tests/ui/impl-trait/in-trait/issue-102571.stderr diff --git a/src/test/ui/impl-trait/in-trait/method-signature-matches.rs b/tests/ui/impl-trait/in-trait/method-signature-matches.rs index c848ee3f6..c848ee3f6 100644 --- a/src/test/ui/impl-trait/in-trait/method-signature-matches.rs +++ b/tests/ui/impl-trait/in-trait/method-signature-matches.rs diff --git a/src/test/ui/impl-trait/in-trait/method-signature-matches.stderr b/tests/ui/impl-trait/in-trait/method-signature-matches.stderr index 2b32c52c8..4dfd77222 100644 --- a/src/test/ui/impl-trait/in-trait/method-signature-matches.stderr +++ b/tests/ui/impl-trait/in-trait/method-signature-matches.stderr @@ -12,8 +12,8 @@ note: type in trait | LL | fn owo(x: ()) -> impl Sized; | ^^ - = note: expected fn pointer `fn(())` - found fn pointer `fn(u8)` + = note: expected signature `fn(())` + found signature `fn(u8)` error[E0053]: method `owo` has an incompatible type for trait --> $DIR/method-signature-matches.rs:20:21 @@ -39,8 +39,8 @@ note: type in trait | LL | async fn owo(x: ()) {} | ^^ - = note: expected fn pointer `fn(()) -> _` - found fn pointer `fn(u8) -> _` + = note: expected signature `fn(()) -> _` + found signature `fn(u8) -> _` error[E0050]: method `calm_down_please` has 3 parameters but the declaration in trait `TooMuch::calm_down_please` has 0 --> $DIR/method-signature-matches.rs:29:28 @@ -75,8 +75,8 @@ note: type in trait | LL | fn early<'early, T>(x: &'early T) -> impl Sized; | ^^^^^^^^^ - = note: expected fn pointer `fn(&'early T)` - found fn pointer `fn(&())` + = note: expected signature `fn(&'early T)` + found signature `fn(&())` error: aborting due to 5 previous errors diff --git a/src/test/ui/impl-trait/in-trait/nested-rpitit.rs b/tests/ui/impl-trait/in-trait/nested-rpitit.rs index 65285e3a3..65285e3a3 100644 --- a/src/test/ui/impl-trait/in-trait/nested-rpitit.rs +++ b/tests/ui/impl-trait/in-trait/nested-rpitit.rs diff --git a/src/test/ui/impl-trait/in-trait/object-safety.rs b/tests/ui/impl-trait/in-trait/object-safety.rs index dd35b9a2d..dd35b9a2d 100644 --- a/src/test/ui/impl-trait/in-trait/object-safety.rs +++ b/tests/ui/impl-trait/in-trait/object-safety.rs diff --git a/src/test/ui/impl-trait/in-trait/object-safety.stderr b/tests/ui/impl-trait/in-trait/object-safety.stderr index ca0e760ff..ca0e760ff 100644 --- a/src/test/ui/impl-trait/in-trait/object-safety.stderr +++ b/tests/ui/impl-trait/in-trait/object-safety.stderr diff --git a/src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs b/tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs index 3ac264e8e..3ac264e8e 100644 --- a/src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs +++ b/tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs diff --git a/src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr b/tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr index 15edda483..15edda483 100644 --- a/src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr +++ b/tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr diff --git a/src/test/ui/impl-trait/in-trait/opaque-in-impl.rs b/tests/ui/impl-trait/in-trait/opaque-in-impl.rs index 2e0662969..2e0662969 100644 --- a/src/test/ui/impl-trait/in-trait/opaque-in-impl.rs +++ b/tests/ui/impl-trait/in-trait/opaque-in-impl.rs diff --git a/src/test/ui/impl-trait/in-trait/reveal.rs b/tests/ui/impl-trait/in-trait/reveal.rs index d6ede1cc4..d6ede1cc4 100644 --- a/src/test/ui/impl-trait/in-trait/reveal.rs +++ b/tests/ui/impl-trait/in-trait/reveal.rs diff --git a/src/test/ui/impl-trait/in-trait/signature-mismatch.rs b/tests/ui/impl-trait/in-trait/signature-mismatch.rs index 90682631a..90682631a 100644 --- a/src/test/ui/impl-trait/in-trait/signature-mismatch.rs +++ b/tests/ui/impl-trait/in-trait/signature-mismatch.rs diff --git a/src/test/ui/impl-trait/in-trait/signature-mismatch.stderr b/tests/ui/impl-trait/in-trait/signature-mismatch.stderr index 6663d7faa..e10566017 100644 --- a/src/test/ui/impl-trait/in-trait/signature-mismatch.stderr +++ b/tests/ui/impl-trait/in-trait/signature-mismatch.stderr @@ -7,8 +7,8 @@ LL | fn async_fn(&self, buff: &[u8]) -> impl Future<Output = Vec<u8>>; LL | fn async_fn<'a>(&self, buff: &'a [u8]) -> impl Future<Output = Vec<u8>> + 'a { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(&'1 Struct, &'2 [u8]) -> impl Future<Output = Vec<u8>> + '2` | - = note: expected `fn(&'1 Struct, &'2 [u8]) -> impl Future<Output = Vec<u8>> + 'static` - found `fn(&'1 Struct, &'2 [u8]) -> impl Future<Output = Vec<u8>> + '2` + = note: expected signature `fn(&'1 Struct, &'2 [u8]) -> impl Future<Output = Vec<u8>> + 'static` + found signature `fn(&'1 Struct, &'2 [u8]) -> impl Future<Output = Vec<u8>> + '2` = help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait` = help: verify the lifetime relationships in the `trait` and `impl` between the `self` argument, the other inputs and its output diff --git a/src/test/ui/impl-trait/in-trait/specialization-broken.rs b/tests/ui/impl-trait/in-trait/specialization-broken.rs index 9d27d3710..9d27d3710 100644 --- a/src/test/ui/impl-trait/in-trait/specialization-broken.rs +++ b/tests/ui/impl-trait/in-trait/specialization-broken.rs diff --git a/src/test/ui/impl-trait/in-trait/specialization-broken.stderr b/tests/ui/impl-trait/in-trait/specialization-broken.stderr index a30e6346b..37cfd7449 100644 --- a/src/test/ui/impl-trait/in-trait/specialization-broken.stderr +++ b/tests/ui/impl-trait/in-trait/specialization-broken.stderr @@ -15,8 +15,8 @@ note: type in trait | LL | fn bar(&self) -> impl Sized; | ^^^^^^^^^^ - = note: expected fn pointer `fn(&U) -> impl Sized` - found fn pointer `fn(&U) -> U` + = note: expected signature `fn(&U) -> impl Sized` + found signature `fn(&U) -> U` error: aborting due to previous error diff --git a/src/test/ui/impl-trait/in-trait/specialization-substs-remap.rs b/tests/ui/impl-trait/in-trait/specialization-substs-remap.rs index c9ee877db..c9ee877db 100644 --- a/src/test/ui/impl-trait/in-trait/specialization-substs-remap.rs +++ b/tests/ui/impl-trait/in-trait/specialization-substs-remap.rs diff --git a/src/test/ui/impl-trait/in-trait/success.rs b/tests/ui/impl-trait/in-trait/success.rs index 4cbe682b4..4cbe682b4 100644 --- a/src/test/ui/impl-trait/in-trait/success.rs +++ b/tests/ui/impl-trait/in-trait/success.rs diff --git a/src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs b/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs index 0bbe50ea6..0bbe50ea6 100644 --- a/src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs +++ b/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs diff --git a/src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr b/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr index 8ff54cad9..8ff54cad9 100644 --- a/src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr +++ b/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr diff --git a/src/test/ui/impl-trait/in-trait/wf-bounds.rs b/tests/ui/impl-trait/in-trait/wf-bounds.rs index 2c71583b3..2c71583b3 100644 --- a/src/test/ui/impl-trait/in-trait/wf-bounds.rs +++ b/tests/ui/impl-trait/in-trait/wf-bounds.rs diff --git a/src/test/ui/impl-trait/in-trait/wf-bounds.stderr b/tests/ui/impl-trait/in-trait/wf-bounds.stderr index 92e36841b..03cc4c2b9 100644 --- a/src/test/ui/impl-trait/in-trait/wf-bounds.stderr +++ b/tests/ui/impl-trait/in-trait/wf-bounds.stderr @@ -7,9 +7,6 @@ LL | fn nya() -> impl Wf<Vec<[u8]>>; = help: the trait `Sized` is not implemented for `[u8]` note: required by a bound in `Vec` --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL - | -LL | pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> { - | ^ required by this bound in `Vec` error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> $DIR/wf-bounds.rs:12:23 diff --git a/src/test/ui/impl-trait/in-trait/where-clause.rs b/tests/ui/impl-trait/in-trait/where-clause.rs index 87bac519c..87bac519c 100644 --- a/src/test/ui/impl-trait/in-trait/where-clause.rs +++ b/tests/ui/impl-trait/in-trait/where-clause.rs |