-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a ui test for an incorrect Result success type in a #[test] #50272
Conversation
LL | / fn can_parse_zero_as_f32() -> Result<f32, ParseIntError> { //~ ERROR | ||
LL | | "0".parse() | ||
LL | | } | ||
| |_^ `main` can only return types that implement `std::process::Termination` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, that message is a bit off, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, the span stinks =)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but let's add it anyway and file a follow-up bug
@bors r+ rollup |
📌 Commit f0069b8 has been approved by |
Add a ui test for an incorrect Result success type in a #[test] cc #48854 (comment) r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
cc #48854 (comment)
r? @nikomatsakis