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
b64a75f20bc9f2895e70eb577bb4fa249d8cefdc
rust/tests/ui/array-slice-vec/nested-vec-1.rs

9 lines
171 B
Rust
Raw Normal View History

Add `// run-pass` annotations to all the tests under `ui/run-pass/`. (I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-08-30 14:18:55 +02:00
// run-pass
Regression tests for issues uncovered only post the run-pass and compile-fail tests. (I.e. the idea being, lets catch errors in these basic constructs sometime *before* we start doing the doc tests.)
2015-03-11 01:25:53 +01:00
// Test that using the `vec!` macro nested within itself works
fn main() {
let nested = vec![vec![1u32, 2u32, 3u32]];
assert_eq!(nested[0][1], 2);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2288ms Template: 2ms
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