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
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust/tests/ui/parser/multitrait.rs

10 lines
224 B
Rust
Raw Normal View History

Remove support for multiple traits in a single impl There was half-working support for them, but they were never fully implemented or even approved. Remove them altogether. Closes #3410
2012-09-07 15:11:26 -07:00
struct S {
Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
y: isize
Remove support for multiple traits in a single impl There was half-working support for them, but they were never fully implemented or even approved. Remove them altogether. Closes #3410
2012-09-07 15:11:26 -07:00
}
Tweak some ‘expected…’ error messages Fixes #21153.
2015-01-16 16:04:28 +13:00
impl Cmp, ToString for S {
Fix expected parse error
2015-08-05 14:18:29 -07:00
//~^ ERROR: expected one of `!`, `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `,`
Remove support for multiple traits in a single impl There was half-working support for them, but they were never fully implemented or even approved. Remove them altogether. Closes #3410
2012-09-07 15:11:26 -07:00
fn eq(&&other: S) { false }
std: Rename the `ToStr` trait to `ToString`, and `to_str` to `to_string`. [breaking-change]
2014-06-21 03:39:03 -07:00
fn to_string(&self) -> String { "hi".to_string() }
core: convert ToStr::to_str to take explicit &self
2013-02-03 20:47:26 -08:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4407ms 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