2023-09-28 22:16:11 -05:00
|
|
|
// run-rustfix
|
|
|
|
#![allow(dead_code)]
|
2022-07-11 01:53:01 -05: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-28 22:16:11 -05:00
|
|
|
fn bar<T>()
|
|
|
|
where
|
|
|
|
T::Baa: std::fmt::Debug,
|
|
|
|
//~^ ERROR associated type `Baa` not found for `T`
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-07-11 01:53:01 -05:00
|
|
|
fn main() {}
|