mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
minor: use minicore
This commit is contained in:
parent
cc73abf72c
commit
a9623f3165
3 changed files with 10 additions and 27 deletions
|
@ -509,18 +509,15 @@ fn main() {
|
|||
check_edit(
|
||||
"ifl",
|
||||
r#"
|
||||
enum Option<T> { Some(T), None }
|
||||
|
||||
//- minicore: option
|
||||
fn main() {
|
||||
let bar = &Option::Some(true);
|
||||
let bar = &Some(true);
|
||||
bar.$0
|
||||
}
|
||||
"#,
|
||||
r#"
|
||||
enum Option<T> { Some(T), None }
|
||||
|
||||
fn main() {
|
||||
let bar = &Option::Some(true);
|
||||
let bar = &Some(true);
|
||||
if let Some($1) = bar {
|
||||
$0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue