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
e997948c8a70d76ffac3c60867d47f98e698988f
rust/src/test/compile-fail/issue-2590.rs

18 lines
264 B
Rust
Raw Normal View History

Make liveness print out a proper error message for moves out of a self field This was a call to span_bug() before. I'm not sure about the other cases, but the test case shows that the `vk_self` case can certainly arise with a bad program, so it should be a span_err() thing and not a span_bug() thing. Closes #2590
2012-06-21 17:41:40 -07:00
import dvec::dvec;
type parser = {
tokens: dvec<int>,
};
rustc: Implement and enforce instance coherence
2012-07-11 15:00:40 -07:00
trait parse {
fn parse() -> ~[mut int];
}
impl parser of parse for parser {
Tear out ty_str and ty_vec.
2012-07-14 12:19:36 -07:00
fn parse() -> ~[mut int] {
change the test suite `//! kind` syntax to `//~ kind` in order to avoid a conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00
dvec::unwrap(self.tokens) //~ ERROR illegal move from self
Make liveness print out a proper error message for moves out of a self field This was a call to span_bug() before. I'm not sure about the other cases, but the test case shows that the `vk_self` case can certainly arise with a bad program, so it should be a span_err() thing and not a span_bug() thing. Closes #2590
2012-06-21 17:41:40 -07:00
}
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 322ms 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