Open gatoWololo opened 5 years ago
Same here with a fixture. Example code:
fixture keys_dir() -> PathBuf {
setup(&mut self) {
let keys_dir = get_keys_pdir();
fs::create_dir_all(&keys_dir).unwrap();
keys_dir
}
tear_down(&mut self) {
fs::remove_dir_all(self.val);
}
}
with output below:
--> src/data/auth.rs:110:13
|
110 | fixture keys_dir() -> PathBuf {
| ^^^^^^^^ expected one of `!` or `::` here
error: aborting due to previous error
Ok, I have solved my issue somehow but this "expected one of !
or ::
here" error might mean something else is wrong with the code. Even in some cases, like borrowing and moving errors, the compiler might complain with the said error. Idk why.
Hello, thank you for the great library! I'm finding it very useful.
A small thing I ran into, there can be no trailing comma on the last member:
With the trailing comma I get the error:
Getting rid of the comma fixes it, but the error does not make it obvious.