mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
minor: use minicore
This commit is contained in:
parent
c2f15270ee
commit
2e4df27132
3 changed files with 3 additions and 17 deletions
|
@ -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: ?"#]],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue