diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-02-11 07:18:06 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-02-11 07:18:06 +0000 |
| commit | d54195db22421c51fd14560aba3bbf9b79a52677 (patch) | |
| tree | dbca79885fa7302801114ff50a777d192628d68b /src/test/ui/impl-trait/nested_impl_trait.rs | |
| parent | 2d8b8f359312210e34b251906179484ffc7287c6 (diff) | |
| download | rust-d54195db22421c51fd14560aba3bbf9b79a52677.tar.gz rust-d54195db22421c51fd14560aba3bbf9b79a52677.zip | |
Revert "Auto merge of #92007 - oli-obk:lazy_tait2, r=nikomatsakis"
This reverts commit e7cc3bddbe0d0e374d05e7003e662bba1742dbae, reversing changes made to 734368a200904ef9c21db86c595dc04263c87be0.
Diffstat (limited to 'src/test/ui/impl-trait/nested_impl_trait.rs')
| -rw-r--r-- | src/test/ui/impl-trait/nested_impl_trait.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/ui/impl-trait/nested_impl_trait.rs b/src/test/ui/impl-trait/nested_impl_trait.rs index 6eac2dece1f..be2c21a7743 100644 --- a/src/test/ui/impl-trait/nested_impl_trait.rs +++ b/src/test/ui/impl-trait/nested_impl_trait.rs @@ -4,7 +4,6 @@ fn fine(x: impl Into<u32>) -> impl Into<u32> { x } fn bad_in_ret_position(x: impl Into<u32>) -> impl Into<impl Debug> { x } //~^ ERROR nested `impl Trait` is not allowed -//~| ERROR `impl Into<u32>` doesn't implement `Debug` fn bad_in_fn_syntax(x: fn() -> impl Into<impl Debug>) {} //~^ ERROR nested `impl Trait` is not allowed @@ -17,7 +16,6 @@ struct X; impl X { fn bad(x: impl Into<u32>) -> impl Into<impl Debug> { x } //~^ ERROR nested `impl Trait` is not allowed - //~| ERROR `impl Into<u32>` doesn't implement `Debug` } fn allowed_in_assoc_type() -> impl Iterator<Item=impl Fn()> { |
