mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
chore: fix some typos
Signed-off-by: peicuiping <ezc5@sina.cn>
This commit is contained in:
parent
80f5a81df9
commit
09541c263e
@ -21,7 +21,7 @@
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// But this shoudln't produce a warning:
|
||||
/// But this shouldn't produce a warning:
|
||||
/// ```rust,no_run
|
||||
/// # extern crate pub_trait;
|
||||
/// # use pub_trait::Trait;
|
||||
|
@ -6,7 +6,7 @@ fn func(func_arg: &mut V) {
|
||||
|| {
|
||||
// Declaring `x` separately instead of using
|
||||
// a destructuring binding like `let V(x) = ...`
|
||||
// becaue only `V(x) = ...` triggers the ICE
|
||||
// because only `V(x) = ...` triggers the ICE
|
||||
let x;
|
||||
V(x) = func_arg; //~ ERROR: mismatched types
|
||||
func_arg.0 = 0;
|
||||
|
@ -6,7 +6,7 @@
|
||||
// to process this `'r` region bound. In particular, to be WF, the
|
||||
// region bound must meet the requirements of the trait, and hence we
|
||||
// got `for<'r> { 'r: 'static }`. This would ICE because the `Binder`
|
||||
// constructor we were using was assering that no higher-ranked
|
||||
// constructor we were using was asserting that no higher-ranked
|
||||
// regions were involved (because the WF code is supposed to skip
|
||||
// those). The error (if debug-asserions were disabled) came because
|
||||
// we obviously cannot prove that `'r: 'static` for any region `'r`.
|
||||
|
@ -17,7 +17,7 @@
|
||||
// `__rust_{begin,end}_short_backtrace` markers, which only appear in full
|
||||
// backtraces. The rest of the backtrace is filtered out.
|
||||
//
|
||||
// Ignored on msvc becaue the `__rust_{begin,end}_short_backtrace` symbols
|
||||
// Ignored on msvc because the `__rust_{begin,end}_short_backtrace` symbols
|
||||
// aren't reliable.
|
||||
|
||||
fn main() { missing_ident; }
|
||||
|
Loading…
Reference in New Issue
Block a user