]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/move-error-snippets.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / borrowck / move-error-snippets.rs
1 // Test that we don't ICE after trying to construct a cross-file snippet #63800.
2
3 // compile-flags: --test
4
5 #[macro_use]
6 #[path = "move-error-snippets-ext.rs"]
7 mod move_error_snippets_ext;
8
9 struct A;
10
11 macro_rules! sss {
12     () => {
13         #[test]
14         fn fff() {
15             static D: A = A;
16             aaa!(D);         //~ ERROR cannot move
17         }
18     };
19 }
20
21 sss!();
22
23 fn main() {}