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
fd8aa5ec7d
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 04:56:38 -06:00
#![
feature(negative_impls)
]
Put negative trait implemtations behind a feature gate
2014-12-29 06:52:43 -06: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 16:33:18 -06:00
// pp-exact
fix pretty test fallout
2015-01-16 04:47:48 -06: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 16:33:18 -06:00
Pretty print empty blocks as {}
2021-12-01 13:45:14 -06: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 16:33:18 -06:00
Pretty print empty blocks as {}
2021-12-01 13:45:14 -06:00
pub
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink