blob: 9d22dd0d98c76b648c9794a980dc57b7de51ac8e [file]
//@ check-pass
//! This is a minimal reproducer for the ICE in https://github.com/rust-lang/rust-clippy/pull/6179.
//! The ICE is mainly caused by using `lower_ty`. See the discussion in the PR for details.
#![warn(clippy::use_self)]
#![expect(clippy::let_with_type_underscore)]
#![allow(non_local_definitions)]
struct Foo;
impl Foo {
fn new() -> Self {
impl Foo {
fn bar() {}
}
let _: _ = 1;
Self {}
}
}
fn main() {}