Skip to content

Commit 908a22b

Browse files
committed
Address @catamorphism's error message grammar nit.
1 parent 656c8f9 commit 908a22b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3827,7 +3827,7 @@ impl Resolver {
38273827
let path_str = self.idents_to_str(trait_reference.path.idents);
38283828

38293829
let usage_str = match reference_type {
3830-
TraitBoundingTypeParameter => "bound type parameter to",
3830+
TraitBoundingTypeParameter => "bound type parameter with",
38313831
TraitImplementation => "implement",
38323832
TraitDerivation => "derive"
38333833
};

src/test/compile-fail/resolve-unknown-trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ impl SomeNonExistentTrait for int {}
1616
//~^ ERROR attempt to implement a nonexistent trait `SomeNonExistentTrait`
1717

1818
fn f<T:SomeNonExistentTrait>() {}
19-
//~^ ERROR attempt to bound type parameter to a nonexistent trait `SomeNonExistentTrait`
19+
//~^ ERROR attempt to bound type parameter with a nonexistent trait `SomeNonExistentTrait`
2020

0 commit comments

Comments
 (0)