1
Fork 0

make E0117 error clear

This commit is contained in:
Takayuki Maeda 2022-04-21 16:47:01 +09:00
parent 09ccb6c59d
commit 547cb2722b
22 changed files with 37 additions and 30 deletions

View file

@ -3,7 +3,7 @@
pub struct Int(i32);
impl const std::ops::Add for i32 { //~ ERROR type annotations needed
//~^ ERROR only traits defined in the current crate can be implemented for arbitrary types
//~^ ERROR only traits defined in the current crate can be implemented for primitive types
type Output = Self;
fn add(self, rhs: Self) -> Self {