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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/reachable/unreachable-variant.rs

8 lines
171 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ aux-build:unreachable_variant.rs
Change `xfail` directives in compiletests to `ignore`, closes #11363
2014-02-07 20:08:32 +01:00
rustc: Add support for `extern crate foo as bar` The compiler will now issue a warning for crates that have syntax of the form `extern crate "foo" as bar`, but it will still continue to accept this syntax. Additionally, the string `foo-bar` will match the crate name `foo_bar` to assist in the transition period as well. This patch will land hopefully in tandem with a Cargo patch that will start translating all crate names to have underscores instead of hyphens. cc #23533
2015-03-19 15:39:03 -07:00
extern crate unreachable_variant as other;
Disallow dereferencing enum types when the variant is private If an enum type's only variant is private, disallow dereferencing values of its type. Due to #4082, this only applies to enums that are in the same crate. r=pcwalton Closes #818
2012-11-30 11:24:16 -08:00
fn main() {
Fix xcrate enum namespacing Closes #19293
2014-11-25 10:00:46 -08:00
let _x = other::super_sekrit::sooper_sekrit::baz; //~ ERROR is private
librustc: Replace `impl Type : Trait` with `impl Trait for Type`. rs=implflipping
2013-02-14 11:47:00 -08:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4263ms 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