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
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/pretty/trait-polarity.rs

10 lines
97 B
Rust
Raw Normal View History

introduce `negative_impls` feature gate and document They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
2020-01-09 05:56:38 -05:00
#![feature(negative_impls)]
Put negative trait implemtations behind a feature gate
2014-12-29 13:52:43 +01:00
Add syntax for negative implementations of traits This commit introduces the syntax for negative implmenetations of traits as shown below: `impl !Trait for Type {}` cc #13231 Part of RFC #3
2014-12-28 23:33:18 +01:00
// pp-exact
fix pretty test fallout
2015-01-16 11:47:48 +01:00
struct Test;
Add syntax for negative implementations of traits This commit introduces the syntax for negative implmenetations of traits as shown below: `impl !Trait for Type {}` cc #13231 Part of RFC #3
2014-12-28 23:33:18 +01:00
Pretty print empty blocks as {}
2021-12-01 11:45:14 -08:00
impl !Send for Test {}
Add syntax for negative implementations of traits This commit introduces the syntax for negative implmenetations of traits as shown below: `impl !Trait for Type {}` cc #13231 Part of RFC #3
2014-12-28 23:33:18 +01:00
Pretty print empty blocks as {}
2021-12-01 11:45:14 -08:00
pub fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1575ms 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