about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-13544-reduced.rs
blob: 9266e71f5d0e0e06d20e5673f13bf9a1f8ce1d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass
#![warn(clippy::significant_drop_tightening)]
#![allow(unused, clippy::no_effect)]

use std::marker::PhantomData;

trait Trait {
    type Assoc: Trait;
}
struct S<T: Trait>(*const S<T::Assoc>, PhantomData<T>);

fn f<T: Trait>(x: &mut S<T>) {
    &mut x.0;
}

fn main() {}