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
ee7d03f7d7691e7ada44c29e09edebb2cf3791c5
rust/src/test/compile-fail/vec-field.rs

9 lines
152 B
Rust
Raw Normal View History

Convert most working tests to ivecs I tried to pay attention to what was actually being tested so, e.g. when I test was just using a vec as a boxed thing, I converted to boxed ints, etc. Haven't converted the macro tests yet. Not sure what to do there.
2011-08-12 15:42:39 -07:00
// error-pattern:attempted field access on type [int]
rustc: Convert field access on invalid types from an ICE to a fatal error Closes #367
2011-06-22 21:22:27 -07:00
// issue #367
fn f() {
Convert most working tests to ivecs I tried to pay attention to what was actually being tested so, e.g. when I test was just using a vec as a boxed thing, I converted to boxed ints, etc. Haven't converted the macro tests yet. Not sure what to do there.
2011-08-12 15:42:39 -07:00
let v = ~[1];
Reformat for new syntax
2011-07-27 14:19:39 +02:00
log v.some_field_name; //type error
rustc: Convert field access on invalid types from an ICE to a fatal error Closes #367
2011-06-22 21:22:27 -07:00
}
Reformat for new syntax
2011-07-27 14:19:39 +02:00
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 187ms Template: 4ms
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