Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust/tests/ui/resolve/issue-6702.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
165 B
Rust
Raw Normal View History

rustc: More helpful error message when using a struct type like a function Closes #6702
2013-08-13 17:54:14 -07:00
struct Monster {
Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
damage: isize
rustc: More helpful error message when using a struct type like a function Closes #6702
2013-08-13 17:54:14 -07: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 17:20:50 -07:00
let _m = Monster();
//~^ ERROR expected function, tuple struct or tuple variant, found struct `Monster`
rustc: More helpful error message when using a struct type like a function Closes #6702
2013-08-13 17:54:14 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5163ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API