Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: macros that expand to items must either be surrounded with braces or followed by a semicolon #3

Open
Boscop opened this issue Mar 20, 2018 · 1 comment

Comments

@Boscop
Copy link

Boscop commented Mar 20, 2018

Why am I getting this error?

delegate_method! {
	impl PausablePlayer {
		player:
		pub fn jump_to(&mut self, dst_time: TickTime);
		pub fn rewind(&mut self);
	}
}

error: macros that expand to items must either be surrounded with braces or followed by a semicolon
error: this error originates in a macro outside of the current crate

@Boscop
Copy link
Author

Boscop commented Mar 24, 2018

Hm, it works when I write:

delegate_method! {
	impl PausablePlayer {
		player as RunningPlayer:
		pub fn jump_to(&mut self, dst_time: TickTime);
		pub fn rewind(&mut self);
	}
}

But shouldn't as RunningPlayer be optional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant