2021-02-25 10:25:22 +00:00
|
|
|
//! 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 `hir_ty_to_ty`. See the discussion in the PR for details.
|
|
|
|
|
|
|
|
#![warn(clippy::use_self)]
|
2023-03-10 09:53:50 +00:00
|
|
|
#![allow(dead_code, clippy::let_with_type_underscore)]
|
2021-02-25 10:25:22 +00:00
|
|
|
|
2022-04-07 17:39:59 +00:00
|
|
|
struct Foo;
|
2021-02-25 10:25:22 +00:00
|
|
|
|
|
|
|
impl Foo {
|
2021-07-19 09:52:05 +00:00
|
|
|
fn new() -> Self {
|
2021-02-25 10:25:22 +00:00
|
|
|
impl Foo {
|
|
|
|
fn bar() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
let _: _ = 1;
|
|
|
|
|
|
|
|
Self {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|