blob: 401095dd83ba113a7c612c20c03b751f1fb4d722 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(freeze, negative_impls)]
use std::marker::Freeze;
struct Foo;
unsafe impl Freeze for Foo {}
//~^ ERROR explicit impls for the `Freeze` trait are not permitted
struct Bar;
impl !Freeze for Bar {}
//~^ ERROR explicit impls for the `Freeze` trait are not permitted
fn main() {}
|