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

10 lines
184 B
Rust
Raw Permalink Normal View History

More systematic error reporting in path resolution
2016-12-01 01:35:25 +03:00
struct S(u8, u16);
type A = S;
Add new error code tests
2016-08-04 01:51:52 +02:00
fn main() {
Merge cfail and ui tests into ui tests
2017-11-20 13:13:27 +01:00
let s = A(0, 1); //~ ERROR expected function
More systematic error reporting in path resolution
2016-12-01 01:35:25 +03:00
match s {
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
A(..) => {} //~ ERROR expected tuple struct or tuple variant
More systematic error reporting in path resolution
2016-12-01 01:35:25 +03:00
}
Add new error code tests
2016-08-04 01:51:52 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3126ms 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