rust/tests/ui/impl-trait/diagnostics/highlight-difference-between-expected-trait-and-found-trait.rs
Vadim Petrochenkov 56d6b4e427 compiletest: Support matching on non-json lines in compiler output
and migrate most of remaining `error-pattern`s to it.
2025-05-04 18:27:45 +03:00

22 lines
286 B
Rust

//@ only-linux
//@ compile-flags: --error-format=human --color=always
trait Foo<T>: Bar<T> {}
trait Bar<T> {}
struct Struct;
impl<T, K> Foo<K> for T where T: Bar<K>
{}
impl<'a> Bar<()> for Struct {}
fn foo() -> impl Foo<i32> {
Struct
}
fn main() {}
//~? RAW the trait bound