rust/tests/ui/associated-consts/freeze.rs

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

13 lines
182 B
Rust
Raw Normal View History

2024-02-23 05:53:25 -06:00
#![feature(freeze)]
//@ check-pass
use std::marker::Freeze;
trait Trait<T: Freeze + 'static> {
const VALUE: T;
const VALUE_REF: &'static T = &Self::VALUE;
}
fn main() {}