mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 09:29:33 +00:00
16 lines
280 B
Rust
16 lines
280 B
Rust
#![feature(freeze, negative_impls)]
|
|
|
|
use std::marker::Freeze;
|
|
|
|
struct Foo;
|
|
|
|
unsafe impl Freeze for Foo {}
|
|
//~^ explicit impls for the `Freeze` trait are not permitted
|
|
|
|
struct Bar;
|
|
|
|
impl !Freeze for Bar {}
|
|
//~^ explicit impls for the `Freeze` trait are not permitted
|
|
|
|
fn main() {}
|