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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/pretty/match-naked-expr.rs

11 lines
177 B
Rust
Raw Normal View History

[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives
2024-02-22 12:10:29 +00:00
//@ pp-exact
accept naked exprs with commas in pattern arms pretty printing will use them, but indentation is slightly off if the expr is long
2012-07-10 10:37:05 -07:00
fn main() {
Remove all `i` suffixes
2015-01-25 22:05:03 +01:00
let x = Some(3);
Replace all ~"" with "".to_owned()
2014-04-15 18:17:48 -07:00
let _y =
match x {
std: Remove String's to_owned
2014-05-25 03:10:11 -07:00
Some(_) => "some(_)".to_string(),
Fix a bug pretty printing `match { 5i } { _ => { } }` This also always puts a trailing comma on the last non-block expr.
2014-07-27 18:05:07 -07:00
None => "none".to_string(),
Replace all ~"" with "".to_owned()
2014-04-15 18:17:48 -07:00
};
accept naked exprs with commas in pattern arms pretty printing will use them, but indentation is slightly off if the expr is long
2012-07-10 10:37:05 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1903ms 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