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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/binding/fat-arrow-match.rs

18 lines
263 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling with clean stderr again. Most were added mechanically.
2018-09-25 23:51:35 +02:00
#![allow(dead_code)]
Add `#![allow(..)]` for a slew of lints of migrated run-pass tests, to silence stderr output.
2018-08-31 15:02:01 +02:00
#![allow(non_camel_case_types)]
Add a test case for previous commit
2012-06-04 18:56:50 -07:00
enum color {
red,
green,
blue
}
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub fn main() {
Switch to purely namespaced enums This breaks code that referred to variant names in the same namespace as their enum. Reexport the variants in the old location or alter code to refer to the new locations: ``` pub enum Foo { A, B } fn main() { let a = A; } ``` => ``` pub use self::Foo::{A, B}; pub enum Foo { A, B } fn main() { let a = A; } ``` or ``` pub enum Foo { A, B } fn main() { let a = Foo::A; } ``` [breaking-change]
2014-11-06 00:05:53 -08:00
println!("{}", match color::red {
Remove all `i` suffixes
2015-01-25 22:05:03 +01:00
color::red => { 1 }
color::green => { 2 }
color::blue => { 3 }
Add a test case for previous commit
2012-06-04 18:56:50 -07:00
});
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4978ms 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