mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +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 {}
|