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
a3bd12b88aaf32b1036cdcb2ef3efe509dbebc15
rust/tests/ui/typestate-multi-decl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
101 B
Rust
Raw Normal View History

tests: Add missing run-pass annotations
2019-07-27 00:54:25 +03:00
//@ run-pass
librustc: Disallow multiple patterns from appearing in a "let" declaration. You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-06-04 21:43:41 -07:00
pub fn main() {
Remove all `i` suffixes
2015-01-25 22:05:03 +01:00
let (x, y) = (10, 20);
librustc: Disallow multiple patterns from appearing in a "let" declaration. You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-06-04 21:43:41 -07:00
let z = x + y;
Use `assert_eq!` instead of `assert!` in tests
2015-06-07 21:00:38 +03:00
assert_eq!(z, 30);
librustc: Disallow multiple patterns from appearing in a "let" declaration. You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-06-04 21:43:41 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 7809ms 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