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/ui/parser/issues/issue-21475.rs

19 lines
300 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Rename the `overlapping_patterns` lint to `overlapping_range_endpoints`
2020-10-22 18:34:00 +01:00
#![allow(unused_imports, overlapping_range_endpoints)]
rustdoc: Replace no-pretty-expanded with pretty-expanded Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-22 13:13:15 -07:00
FIX #21475: Interval match patterns won't parse namespace specifiers correctly
2015-01-22 21:56:27 +02:00
use m::{START, END};
fn main() {
Remove integer suffixes where the types in compiled code are identical.
2015-03-03 10:42:26 +02:00
match 42 {
migrate codebase to `..=` inclusive range patterns These were stabilized in March 2018's #47813, and are the Preferred Way to Do It going forward (q.v. #51043).
2018-05-28 19:42:11 -07:00
m::START..=m::END => {},
0..=m::END => {},
m::START..=59 => {},
FIX #21475: Interval match patterns won't parse namespace specifiers correctly
2015-01-22 21:56:27 +02:00
_ => {},
}
}
mod m {
pub const START: u32 = 4;
pub const END: u32 = 14;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5035ms Template: 6ms
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