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
e0e7a432db38ac26355e7c60219c27720b9ec42f
rust/tests/ui/binding/match-unique-bind.rs

12 lines
170 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Opt into `box_patterns` feature gate in all tests that use them.
2015-02-10 22:52:00 +01:00
#![feature(box_patterns)]
run-pass tests: Add feature attributes to enable box pat/expr syntax in various tests.
2015-01-07 20:32:25 +01:00
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub fn main() {
Remove box syntax from most places in src/test outside of the issues dir
2021-08-25 02:39:40 +02:00
match Box::new(100) {
librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, except for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. How to update your code: * Instead of `~EXPR`, you should write `box EXPR`. * Instead of `~TYPE`, you should write `Box<Type>`. * Instead of `~PATTERN`, you should write `box PATTERN`. [breaking-change]
2014-05-05 18:56:44 -07:00
box x => {
Remove libdebug and update tests.
2014-10-14 21:07:11 -04:00
println!("{}", x);
Use assert_eq! rather than assert! where possible
2013-05-18 22:02:45 -04:00
assert_eq!(x, 100);
rustc: Put uniques into addrspace 1
2012-06-04 22:56:40 -07:00
}
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3956ms 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