mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
12 lines
194 B
Rust
12 lines
194 B
Rust
// compile-flags: -Znext-solver
|
|
|
|
trait Foo: Bar<i32> + Bar<u32> {}
|
|
|
|
trait Bar<T> {}
|
|
|
|
fn main() {
|
|
let x: &dyn Foo = todo!();
|
|
let y: &dyn Bar<usize> = x;
|
|
//~^ ERROR mismatched types
|
|
}
|