make E0117
error clear
This commit is contained in:
parent
09ccb6c59d
commit
547cb2722b
22 changed files with 37 additions and 30 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue