This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
e30d27be00
rust
/
tests
/
ui
/
resolve
/
enums-pats-not-idents.rs
4 lines
103 B
Rust
Raw
Normal View
History
Unescape
Escape
add test case for enum disambiguation
2013-04-29 01:00:01 -05:00
fn
main
(
)
{
Point at local similarly named element and tweak references to variants Point at the span for the definition of ADTs internal to the current crate. Look at the leading char of the ident to determine whether we're expecting a likely fn or any of a fn, a tuple struct or a tuple variant. Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-14 19:20:50 -05:00
let
a
(
1
)
=
13
;
//~ ERROR cannot find tuple struct or tuple variant `a` in this scope
add test case for enum disambiguation
2013-04-29 01:00:01 -05:00
}
Reference in New Issue
Copy Permalink