easy-ext icon indicating copy to clipboard operation
easy-ext copied to clipboard

Inner doc comments cause compile failure

Open sendittothenewts opened this issue 1 year ago • 0 comments

For instance, the following toy example fails to compile, producing "error: expected ["

use easy_ext::ext;

#[ext] impl i32 {
	//! Square the number
	fn square(self) -> Self {
		self * self
	}
}

Tested with easy-ext 1.0.2 on rust 1.82.0.

sendittothenewts avatar Nov 18 '24 22:11 sendittothenewts