2021-02-13 07:12:59 -06: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)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2022-03-27 07:41:09 -05:00
|
|
|
struct Foo;
|
2021-02-13 07:12:59 -06:00
|
|
|
|
|
|
|
impl Foo {
|
2021-06-25 15:34:45 -05:00
|
|
|
fn new() -> Self {
|
2021-02-13 07:12:59 -06:00
|
|
|
impl Foo {
|
|
|
|
fn bar() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
let _: _ = 1;
|
|
|
|
|
|
|
|
Self {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|