2021-02-25 11:25:22 +01:00
|
|
|
//! This is a minimal reproducer for the ICE in https://github.com/rust-lang/rust-clippy/pull/6179.
|
2024-02-11 09:22:52 +01:00
|
|
|
//! The ICE is mainly caused by using `lower_ty`. See the discussion in the PR for details.
|
2021-02-25 11:25:22 +01:00
|
|
|
|
|
|
|
#![warn(clippy::use_self)]
|
2023-03-10 10:53:50 +01:00
|
|
|
#![allow(dead_code, clippy::let_with_type_underscore)]
|
2024-01-26 18:48:18 +01:00
|
|
|
#![allow(non_local_definitions)]
|
2021-02-25 11:25:22 +01:00
|
|
|
|
2022-04-07 18:39:59 +01:00
|
|
|
struct Foo;
|
2021-02-25 11:25:22 +01:00
|
|
|
|
|
|
|
impl Foo {
|
2021-07-19 11:52:05 +02:00
|
|
|
fn new() -> Self {
|
2021-02-25 11:25:22 +01:00
|
|
|
impl Foo {
|
|
|
|
fn bar() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
let _: _ = 1;
|
|
|
|
|
|
|
|
Self {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|