about summary refs log tree commit diff
path: root/tests/ui/traits/default-method/mut.rs
blob: 1130ca0b4be2555395a634555b65cd69c278f1bb (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-pass
#![allow(unused_assignments)]

#![allow(unused_variables)]

trait Foo {
    fn foo(&self, mut v: isize) { v = 1; }
}

pub fn main() {}