mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
12 lines
335 B
Rust
12 lines
335 B
Rust
// This test is for regression of issue #145611
|
|
// There should not be cycle error in effective_visibilities query.
|
|
|
|
trait LocalTrait {}
|
|
struct SomeType;
|
|
fn impls_trait<T: LocalTrait>() {}
|
|
fn foo() -> impl Sized {
|
|
impls_trait::<SomeType>(); //~ ERROR the trait bound `SomeType: LocalTrait` is not satisfied [E0277]
|
|
}
|
|
|
|
fn main() {}
|