2023-09-29 03:16:11 +00:00
|
|
|
// run-rustfix
|
|
|
|
#![allow(dead_code)]
|
2022-07-11 06:53:01 +00:00
|
|
|
trait Foo {
|
|
|
|
type Bar;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo<T: Foo>()
|
|
|
|
where
|
|
|
|
T::Baa: std::fmt::Debug,
|
|
|
|
//~^ ERROR associated type `Baa` not found for `T`
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-09-29 03:16:11 +00:00
|
|
|
fn bar<T>()
|
|
|
|
where
|
|
|
|
T::Baa: std::fmt::Debug,
|
|
|
|
//~^ ERROR associated type `Baa` not found for `T`
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-07-11 06:53:01 +00:00
|
|
|
fn main() {}
|