Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// E0116 caused other unrelated errors, so check no unrelated errors are emmitted.

fn main() {
let x = "hello";
x.split(" ");
}

impl Vec<usize> {} //~ ERROR E0116
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
--> $DIR/no-other-unrelated-errors.rs:8:1
|
LL | impl Vec<usize> {}
| ^^^^^^^^^^^^^^^ impl for type defined outside of crate
|
= note: define and implement a trait or new type instead

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0116`.
Loading