This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
rust
/
tests
/
pretty
/
trait-polarity.rs
10 lines
97 B
Rust
Raw
Normal View
History
Unescape
Escape
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