Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tests/regression.rs')
-rw-r--r--crates/hir-ty/src/tests/regression.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/hir-ty/src/tests/regression.rs b/crates/hir-ty/src/tests/regression.rs
index f80d539498..3aa94be755 100644
--- a/crates/hir-ty/src/tests/regression.rs
+++ b/crates/hir-ty/src/tests/regression.rs
@@ -1980,7 +1980,7 @@ impl<#[cfg(feature = "a-feature")] A> Bar for (){}
fn nested_anon_generics_and_where_bounds_17173() {
check_types(
r#"
-//- minicore: sized
+//- minicore: sized, fn
pub trait Lookup {
type Data;
fn lookup(&self) -> Self::Data;
@@ -1988,8 +1988,11 @@ pub trait Lookup {
pub trait ItemTreeLoc {
type Id;
}
-fn id_to_generics(id: impl Lookup<Data = impl ItemTreeLoc<Id = ()>>)
+fn id_to_generics(id: impl Lookup<Data = impl ItemTreeLoc<Id = ()>>,
//^^ impl Lookup<Data = impl ItemTreeLoc<Id = ()>>
+ enabled_params: impl Fn(),
+ //^^^^^^^^^^^^^^ impl Fn()
+ )
where
(): Sized,
{}