]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-24954.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-24954.rs
1 // run-pass
2 macro_rules! foo {
3     ($y:expr) => ({
4         $y = 2;
5     })
6 }
7
8 #[allow(unused_variables)]
9 #[allow(unused_assignments)]
10 fn main() {
11     let mut x = 1;
12     foo!(x);
13 }