mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
12 lines
206 B
Rust
12 lines
206 B
Rust
//@ known-bug: rust-lang/rust#124857
|
|
//@ compile-flags: -Znext-solver=coherence
|
|
|
|
#![feature(effects)]
|
|
|
|
#[const_trait]
|
|
trait Foo {}
|
|
|
|
impl const Foo for i32 {}
|
|
|
|
impl<T> const Foo for T where T: ~const Foo {}
|