]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-68049-2.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / suggestions / issue-68049-2.rs
CommitLineData
17df50a5
XL
1trait Hello {
2 fn example(&self, input: &i32); // should suggest here
3}
4
5struct Test1(i32);
6
7impl Hello for Test1 {
8 fn example(&self, input: &i32) { // should not suggest here
9 *input = self.0; //~ ERROR cannot assign
10 }
11}
12
13struct Test2(i32);
14
15impl Hello for Test2 {
16 fn example(&self, input: &i32) { // should not suggest here
17 self.0 += *input; //~ ERROR cannot assign
18 }
19}
20
21fn main() { }