From 2e4df27132afafbd9ac5ec14070432c38d6cae8f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 18 Jun 2021 22:14:39 +0300 Subject: minor: use minicore --- crates/ide_completion/src/context.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/ide_completion/src/context.rs') diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index 98fb36042..e49e434fa 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs @@ -942,13 +942,12 @@ fn foo() -> u32 { // FIXME: make this work with `|| $0` check_expected_type_and_name( r#" +//- minicore: fn fn foo() { bar(|| a$0); } fn bar(f: impl FnOnce() -> u32) {} -#[lang = "fn_once"] -trait FnOnce { type Output; } "#, expect![[r#"ty: u32, name: ?"#]], ); -- cgit v1.2.3