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
ec40b1a393
rust
/
tests
/
ui
/
parser
/
issues
/
issue-6610.rs
4 lines
99 B
Rust
Raw
Normal View
History
Unescape
Escape
Rely on regular "expected"/"found" parser error for `fn`
2020-10-25 14:13:27 -05:00
trait
Foo
{
fn
a
(
)
}
//~ ERROR expected one of `->`, `;`, `where`, or `{`, found `}`
Fix error message when trait method ends with wrong token When parsing a trait function, the function must end with either `;` or `{` (signifying a default implementation). The error message incorrectly stated that it must be `;` or `}`. Fixes #6610.
2013-08-15 19:58:56 -05:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink