]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3424.rs
Enable full revision in const generics ui tests
[rust.git] / src / test / ui / issues / issue-3424.rs
1 // check-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4 // rustc --test ignores2.rs && ./ignores2
5
6 pub struct Path;
7
8 type rsrc_loader = Box<dyn FnMut(&Path) -> Result<String, String>>;
9
10 fn tester()
11 {
12     let mut loader: rsrc_loader = Box::new(move |_path| {
13         Ok("more blah".to_string())
14     });
15
16     let path = Path;
17     assert!(loader(&path).is_ok());
18 }
19
20 pub fn main() {}