diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-25 22:34:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-25 22:34:32 +0200 |
| commit | 6c7575721ffb1de2302b0c4cb01d2c88f7f47704 (patch) | |
| tree | 195e3890b661ab4dcfdd6728139afbc31bb88ff8 /tests | |
| parent | d7723f4180141f439e5607ea9f940b885901d660 (diff) | |
| parent | 83722c62b08a2ced521a79f25be05a0c16a907d1 (diff) | |
| download | rust-6c7575721ffb1de2302b0c4cb01d2c88f7f47704.tar.gz rust-6c7575721ffb1de2302b0c4cb01d2c88f7f47704.zip | |
Rollup merge of #113036 - TaKO8Ki:fix-112094, r=compiler-errors
Accept `ReStatic` for RPITIT Fixes #112094 Regression in https://github.com/rust-lang/rust/commit/8216b7f22934cea2422c79565df9c30ac8db93e0 If there is a better suggestion, I will go with that.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/impl-trait/static-lifetime-return-position-impl-trait.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/static-lifetime-return-position-impl-trait.rs b/tests/ui/impl-trait/static-lifetime-return-position-impl-trait.rs new file mode 100644 index 00000000000..98dbaf036be --- /dev/null +++ b/tests/ui/impl-trait/static-lifetime-return-position-impl-trait.rs @@ -0,0 +1,12 @@ +// check-pass + +#![allow(incomplete_features)] +#![feature(adt_const_params, return_position_impl_trait_in_trait)] + +pub struct Element; + +pub trait Node { + fn elements<const T: &'static str>(&self) -> impl Iterator<Item = Element>; +} + +fn main() {} |
