Skip to content

Commit 00e60b8

Browse files
author
Alexander Regueiro
committed
Resolved nit.
1 parent 961e2ec commit 00e60b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/ui/error-codes/E0225.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ trait Foo = std::io::Read + std::io::Write;
1414
trait Bar = Foo;
1515

1616
fn main() {
17-
let _: Box<std::io::Read + std::io::Write>;
18-
let _: Box<Bar>;
17+
let _: Box<std::io::Read + std::io::Write>; //~ ERROR E0225
18+
let _: Box<Bar>; //~ ERROR E0225
1919
}

src/test/ui/error-codes/E0225.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0225]: only auto traits can be used as additional traits in a trait object
22
--> $DIR/E0225.rs:17:32
33
|
4-
LL | let _: Box<std::io::Read + std::io::Write>;
4+
LL | let _: Box<std::io::Read + std::io::Write>; //~ ERROR E0225
55
| ^^^^^^^^^^^^^^ non-auto additional trait
66

77
error[E0225]: only auto traits can be used as additional traits in a trait object
@@ -12,7 +12,7 @@ LL | trait Foo = std::io::Read + std::io::Write;
1212
LL | trait Bar = Foo;
1313
| --- referenced by this alias
1414
...
15-
LL | let _: Box<Bar>;
15+
LL | let _: Box<Bar>; //~ ERROR E0225
1616
| ^^^
1717

1818
error: aborting due to 2 previous errors

0 commit comments

Comments
 (0)