Files
rust/tests/ui/traits/const-traits/parse-const-unsafe-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
280 B
Rust
Raw Normal View History

// Test that `const unsafe trait` and `const unsafe auto trait` works.
//@ check-pass
#![feature(const_trait_impl)]
#![feature(auto_traits)]
pub const unsafe trait Owo {}
const unsafe trait OwO {}
pub const unsafe auto trait UwU {}
const unsafe auto trait Uwu {}
fn main() {}