diff options
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/hover.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index 9a88b4977..a03024d09 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs | |||
@@ -2438,10 +2438,15 @@ fn func(foo: i32) { if true { <|>foo; }; } | |||
2438 | r#" | 2438 | r#" |
2439 | //- /lib.rs deps:std | 2439 | //- /lib.rs deps:std |
2440 | 2440 | ||
2441 | #[lang = "fn"] | 2441 | #[lang = "fn_once"] |
2442 | pub trait Fn<Args> { | 2442 | pub trait FnOnce<Args> { |
2443 | type Output; | 2443 | type Output; |
2444 | 2444 | ||
2445 | extern "rust-call" fn call_once(&self, args: Args) -> Self::Output; | ||
2446 | } | ||
2447 | |||
2448 | #[lang = "fn"] | ||
2449 | pub trait Fn<Args>:FnOnce<Args> { | ||
2445 | extern "rust-call" fn call(&self, args: Args) -> Self::Output; | 2450 | extern "rust-call" fn call(&self, args: Args) -> Self::Output; |
2446 | } | 2451 | } |
2447 | 2452 | ||