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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/error-codes/E0071.rs

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

8 lines
158 B
Rust
Raw Normal View History

Remove restrictions from tuple structs/variants Hard errors are turned into feature gates
2016-07-29 23:47:55 +03:00
enum Foo {}
Preparations and cleanup Diagnostics for struct path resolution errors in resolve and typeck are unified. Self type is treated as a type alias in few places (not reachable yet). Unsafe cell is seen in constants even through type aliases. All checks for struct paths in typeck work on type level.
2016-09-15 00:51:46 +03:00
type FooAlias = Foo;
Add new error code tests
2016-05-20 15:18:30 +02:00
fn main() {
Preparations and cleanup Diagnostics for struct path resolution errors in resolve and typeck are unified. Self type is treated as a type alias in few places (not reachable yet). Unsafe cell is seen in constants even through type aliases. All checks for struct paths in typeck work on type level.
2016-09-15 00:51:46 +03:00
let u = FooAlias { value: 0 };
Modify primary span label for E0308 The previous output was unintuitive to users.
2023-01-02 18:00:33 -08:00
//~^ ERROR expected struct, variant or union type, found `Foo` [E0071]
Add new error code tests
2016-05-20 15:18:30 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2338ms Template: 2ms
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