// build-pass #![feature(adt_const_params)] #![allow(incomplete_features)] #[derive(PartialEq, Eq)] struct Yikes; impl Yikes { fn mut_self(&mut self) {} } fn foo() { YIKES.mut_self() //~^ WARNING taking a mutable reference } fn main() { foo::<{ Yikes }>() }