mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
17 lines
189 B
Rust
17 lines
189 B
Rust
// check-pass
|
|
// compile-flags: -Z trait-solver=chalk
|
|
|
|
#![allow(dead_code)]
|
|
|
|
trait Foo {
|
|
fn foo(&self);
|
|
}
|
|
|
|
impl<T> Foo for T where T: Clone {
|
|
fn foo(&self) {
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
}
|