Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
647f1536d2f50b203ca9a67396225c4f7771e1c8
rust/tests/ui/parser/class-implements-bad-trait.rs

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

9 lines
178 B
Rust
Raw Normal View History

compiletest: Require `//~` annotations even if `error-pattern` is specified
2025-03-29 02:41:32 +03:00
class cat : nonexistent { //~ ERROR expected one of `!` or `::`, found `cat`
Update compile fail tests to use usize.
2015-01-08 22:02:42 +11:00
let meows: usize;
new(in_x : usize) { self.meows = in_x; }
Allow classes to implement ifaces Introduce syntax like: iface animal { ... } class cat implements animal { ... } to allow classes to implement ifaces. Casting classes to ifaces is *not* yet supported. ifaces that a class implements are not yet included in metadata. The syntax is subject to change, and may go away completely if we decide to use duck typing to relate classes with ifaces (see http://smallcultfollowing.com/babysteps/blog/2012/04/10/declared-vs-duckish-typing/ )
2012-04-11 16:18:00 -07:00
}
fn main() {
Remove integer suffixes where the types in compiled code are identical.
2015-03-03 10:42:26 +02:00
let nyan = cat(0);
rustc: Switch to the new resolution pass
2012-07-06 19:06:58 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3768ms 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