Skip to content

Instantly share code, notes, and snippets.

@savage13
Last active February 5, 2017 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savage13/42f77fba8acbf75b9a165b4031e09671 to your computer and use it in GitHub Desktop.
Save savage13/42f77fba8acbf75b9a165b4031e09671 to your computer and use it in GitHub Desktop.

Unexplained Codes

  • E0090 Too few lifetime parameters
  • E0103 @GuillaumeGomez: I was unable to get this error, try your best!
  • E0104 cannot resolve lifetime for captured variable {}: {}"
  • E0183 manual implementations of {} are experimental, help!(&mut err, "add #![feature(unboxed_closures)] to the crate attributes to enable");
  • E0196 cannot determine a type for this closure
  • E0203 type parameter has more than one relaxed default bound, and only one is supported
  • E0208 For unit testing: check for a special "rustc_variance" attribute and report an error with various results if found. item_variances
  • E0212 cannot extract an associated type from a higher-ranked trait bound
  • E0224 at least one non-builtin trait is required for an object type
  • E0226 only a single explicit lifetime bound is permitted
  • E0227 ambiguous lifetime bound, explicit lifetime bound required
  • E0228 explicit lifetime bound required
  • E0231 only named substitution parameters are allowed
  • E0245 not a trait
  • E0278 the requirement {} is not satisfied ({}) predicate, equality_predicate
  • E0279 the requirement {} is not satisfied ({}) predicate, region_outlives_predicate
  • E0280 the requirement {} is not satisfied predicate ty::Predicate::Projection(..) - [ ] ty::Predicate::TypeOutlives(..)
  • E0284 type annotations required: cannot resolve {} predicate
  • E0298 type mismatch comparing {} and {} cannot compare constants // FIXME: can this ever be reached?
  • E0311 {} may not live long enough, labeled_user_string // If not (nice name), be less specific.
  • E0313 lifetime of borrowed pointer outlives lifetime of captured variable
  • E0314 closure outlives stack frame ...the closure must be valid for ...but the closure's stack frame is only valid for
  • E0315 cannot invoke closure outside of its lifetime the closure is only valid for
  • E0316 nested quantification of lifetimes
  • E0320 recursive overflow during drop-check for {} type
  • E0377 the trait CoerceUnsized may only be implemented for a coercion between structures with the same definition; expected {}, found {} source path, target_path
  • E0385 {} in an aliasable location mc::AliasableOther
  • E0402 cannot use an outer type parameter in this context, has compile fails
  • E0436 functional record update requires a struct, match struct_ty.sty
  • E0456 - [ ] match struct_ty.sty
  • E0456 plugin {} is not available for triple {} config::host_triple()
  • E0457 plugin {} only found in rlib format, but must be available in dylib format
  • E0460 found possibly newer version of crate {}{}
  • E0461 couldn't find crate .. with expected target triple ..
  • E0462 found staticlib .. instead of rlib or dylib
  • E0464 multiple matching crates for ..
  • E0465 multiple .. candidates for .. found
  • E0472 asm! is unsupported on this target
  • E0473 dereference of reference outside its lifetime the reference is only valid for
  • E0474 captured variable .. does not outlive the enclosing closure captured variable is valid for
  • E0475 index of slice outside its lifetime the slice is only valid for
  • E0476 lifetime of the source pointer does not outlive lifetime bound of the object type object type is valid for
  • E0477 the type .. does not fulfill the required lifetime type must outlive
  • E0479 the type .. (provided as the value of a type parameter) is not valid at this point type must outlive
  • E0480 lifetime of method receiver does not outlive the method call the receiver is only valid for
  • E0481 lifetime of function argument does not outlive the function call the function argument is only valid for
  • E0482 lifetime of return value does not outlive the function call the return value is only valid for
  • E0483 lifetime of operand does not outlive the operation the operand is only valid for
  • E0484 reference is not valid at the time of borrow the borrow is only valid for
  • E0485 automatically reference is not valid at the time of borrow the automatic borrow is only valid for
  • E0486 type of expression contains references that are not valid during the expression type is only valid for
  • E0487 unsafe use of destructor: destructor might be called while references are dead, FIXME (22171): terms "super/subregion" are suboptimal
  • E0488 lifetime of variable does not enclose its declaration the variable is only valid for
  • E0489 type/lifetime parameter not in scope here the parameter is only valid for
  • E0490 a value of type .. is borrowed for too long the type is valid for ", sub, "" but the borrow lasts for ", sup, ""
  • E0495 cannot infer an appropriate lifetime due to conflicting requirements - [ ] has compile fails
  • E0498 malformed plugin attribute
  • E0514 metadata version mismatch, found crate {} compiled by an incompatible version of rustc{}
  • E0519 the current crate is indistinguishable from one of its dependencies: it has the same crate-name {} and was compiled with the same -C metadata arguments. This will result in symbol conflicts between the two. local crate and dependency have same (crate-name, disambiguator)
  • E0521 redundant default implementations of trait
  • E0523 found two different crates with name {} that are not distinguished by differing -C metadata. This will result in symbol conflicts between the two. Two dependencies have same (crate-name, disambiguator) but different SVH
  • E0524 two closures require unique access to .. at the same time
  • E0526 shuffle indices are not constant
  • E0531 unresolved pattern path kind name, has tests
  • E0533 {}` does not name a unit variant, unit struct or a constant
  • E0538 multiple [same] items
  • E0539 incorrect meta item, has tests
  • E0540 multiple rustc_deprecated attributes, has tests
  • E0541 unknown meta item, has tests
  • E0542 missing 'since', has tests
  • E0543 missing 'reason'
  • E0544 multiple stability levels, has tests
  • E0545 incorrect 'issue'
  • E0546 missing 'feature', has tests
  • E0547 missing 'issue', has tests
  • E0548 incorrect stability attribute type, has tests
  • E0549 rustc_deprecated attribute must be paired with either stable or unstable attribute
  • E0550 multiple deprecated attributes
  • E0551 incorrect meta item
  • E0552 unrecognized representation hint
  • E0553 unrecognized enum representation hint
  • E0554 #[feature] may not be used on the [] release channel
  • E0555 malformed feature attribute, expected #![feature(...)]
  • E0556 malformed feature, expected just one word
  • E0557 feature has been removed
  • E0561 patterns aren't allowed in function pointer types this is a recent error, see issue #35203 for more details
  • E0562 impl Trait not allowed outside of function and inherent method return types
  • E0563 cannot determine a type for this impl Trait: {}
  • E0564 only named lifetimes are allowed in impl Trait, but {} was found in the type {}
  • E0566 conflicting representation hints
  • E0567 auto traits can not have type parameters, has compile-fails
  • E0568 auto-traits can not have predicates, has compile-fails
  • E0571 break with a value in a non-loop-loop
  • E0573 PathSource::Type == true
  • E0574 PathSource::Struct == true
  • E0575 PathSource::TraitItem(..) == true
  • E0576 PathSource::TraitItem(..) == false
  • E0577 PathSource::Visibility == true | PathSource::ImportPrefix == true
  • E0578 PathSource::Visibility == false | PathSource::ImportPrefix == false

Explained Code

  • E0001
  • E0002
  • E0003
  • E0004
  • E0005
  • E0007
  • E0008
  • E0009
  • E0010
  • E0013
  • E0014
  • E0015
  • E0016
  • E0017
  • E0018
  • E0019
  • E0020
  • E0022
  • E0023
  • E0025
  • E0026
  • E0027
  • E0029
  • E0030
  • E0033
  • E0034
  • E0035
  • E0036
  • E0038
  • E0040
  • E0044
  • E0045
  • E0046
  • E0049
  • E0050
  • E0053
  • E0054
  • E0055
  • E0057
  • E0059
  • E0060
  • E0061
  • E0062
  • E0063
  • E0066
  • E0067
  • E0069
  • E0070
  • E0071
  • E0072
  • E0073
  • E0074
  • E0075
  • E0076
  • E0077
  • E0079
  • E0080
  • E0081
  • E0082
  • E0084
  • E0087
  • E0088
  • E0089
  • E0091
  • E0092
  • E0093
  • E0094
  • E0101
  • E0102
  • E0106
  • E0107
  • E0109
  • E0110
  • E0116
  • E0117
  • E0118
  • E0119
  • E0120
  • E0121
  • E0122
  • E0124
  • E0128
  • E0130
  • E0131
  • E0132
  • E0133
  • E0136
  • E0137
  • E0138
  • E0139
  • E0152
  • E0154
  • E0158
  • E0161
  • E0162
  • E0164
  • E0165
  • E0170
  • E0178
  • E0182
  • E0184
  • E0185
  • E0186
  • E0191
  • E0192
  • E0193
  • E0194
  • E0195
  • E0197
  • E0198
  • E0199
  • E0200
  • E0201
  • E0202
  • E0204
  • E0205
  • E0206
  • E0207
  • E0210
  • E0211
  • E0214
  • E0220
  • E0221
  • E0223
  • E0225
  • E0229
  • E0230
  • E0232
  • E0243
  • E0244
  • E0248
  • E0251
  • E0252
  • E0253
  • E0254
  • E0255
  • E0256
  • E0259
  • E0260
  • E0261
  • E0262
  • E0263
  • E0264
  • E0265
  • E0267
  • E0268
  • E0271
  • E0272
  • E0273
  • E0274
  • E0275
  • E0276
  • E0277
  • E0281
  • E0282
  • E0283
  • E0296
  • E0297
  • E0301
  • E0302
  • E0303
  • E0306
  • E0308
  • E0309
  • E0310
  • E0312
  • E0317
  • E0318
  • E0321
  • E0322
  • E0323
  • E0324
  • E0325
  • E0326
  • E0328
  • E0329
  • E0364
  • E0365
  • E0366
  • E0367
  • E0368
  • E0369
  • E0370
  • E0371
  • E0373
  • E0374
  • E0375
  • E0376
  • E0379
  • E0380
  • E0381
  • E0382
  • E0383
  • E0384
  • E0386
  • E0387
  • E0388
  • E0389
  • E0390
  • E0391
  • E0392
  • E0393
  • E0394
  • E0395
  • E0396
  • E0398
  • E0399
  • E0401
  • E0403
  • E0404
  • E0405
  • E0407
  • E0408
  • E0409
  • E0411
  • E0412
  • E0415
  • E0416
  • E0422
  • E0423
  • E0424
  • E0425
  • E0426
  • E0428
  • E0429
  • E0430
  • E0431
  • E0432
  • E0433
  • E0434
  • E0435
  • E0437
  • E0438
  • E0439
  • E0440
  • E0441
  • E0442
  • E0443
  • E0444
  • E0445
  • E0446
  • E0447
  • E0448
  • E0449
  • E0450
  • E0451
  • E0452
  • E0453
  • E0454
  • E0455
  • E0437
  • E0438
  • E0439
  • E0440
  • E0441
  • E0442
  • E0443
  • E0444
  • E0445
  • E0446
  • E0447
  • E0448
  • E0449
  • E0450
  • E0451
  • E0452
  • E0453
  • E0454
  • E0455
  • E0458
  • E0459
  • E0463
  • E0466
  • E0467
  • E0468
  • E0469
  • E0470
  • E0478
  • E0491
  • E0492
  • E0493
  • E0494
  • E0496
  • E0497
  • E0499
  • E0500
  • E0501
  • E0502
  • E0503
  • E0504
  • E0505
  • E0506
  • E0507
  • E0508
  • E0509
  • E0511
  • E0512
  • E0516
  • E0517
  • E0518
  • E0520
  • E0522
  • E0525
  • E0527
  • E0528
  • E0529
  • E0530
  • E0532
  • E0534
  • E0535
  • E0536
  • E0537
  • E0558
  • E0559
  • E0560
  • E0565
  • E0569
  • E0570
  • E0572
  • E0579
  • E0580

"Retired" Codes

  • E0006 // merged with - [x] E0005
  • E0068 // Commented Out
  • E0085 // Commented Out
  • E0086 // Commented Out
  • E0123 // Commented Out
  • E0127 // Commented Out
  • E0129 // Commented Out
  • E0134 // Commented Out
  • E0135 // Commented Out
  • E0141 // Commented Out
  • E0153 // unused error code
  • E0157 // unused error code
  • E0159 // Commented, use of trait {} as struct constructor
  • E0163 // merged into - [x] E0071
  • E0167 // Commented Out
  • E0168 // Commented Out
  • E0172 REMOVED? // Commented non-trait found in a type sum, moved to resolve
  • E0173 // Commented manual implementations of unboxed closure traits are experimental
  • E0174 // Commented Out
  • E0187 // can't infer the kind of the closure
  • E0188 // can not cast an immutable reference to a mutable pointer
  • E0189 // deprecated: can only cast a boxed pointer to a boxed object
  • E0190 // deprecated: can only cast a &-pointer to an &-object
  • E0209 // builtin traits can only be implemented on structs or enums
  • E0213 // associated types are not accepted in this context
  • E0215 // angle-bracket notation is not stable with Fn
  • E0216 // parenthetical notation is only stable with Fn
  • E0217 // ambiguous associated type, defined in multiple supertraits
  • E0218 // no associated type defined
  • E0219 // associated type defined in higher-ranked supertrait
  • E0222 // Error code - [x] E0045 (variadic function must have C calling convention) duplicate
  • E0233 //
  • E0234 //
  • E0235 // structure constructor specifies a structure of type but
  • E0236 // no lang item for range syntax
  • E0237 // no lang item for range syntax
  • E0238 // parenthesized parameters may only be used with a trait
  • E0239 // next method of Iterator trait has unexpected type
  • E0240 //
  • E0241 //
  • E0242 //
  • E0246 // invalid recursive type
  • E0247 //
  • E0249 //
  • E0257 //
  • E0258 //
  • E0285 // overflow evaluation builtin bounds
  • E0299 // mismatched types between arms
  • E0300 // unexpanded macro
  • E0304 // expected signed integer constant
  • E0305 // expected constant
  • E0319 // trait impls for defaulted traits allowed just for structs/enum
  • E0372 // coherence not object safe
  • E0406 // merged into 420
  • E0410 // merged into 408
  • E0413 // merged into 530
  • E0414 // merged into 530
  • E0417 // merged into 532
  • E0418 // merged into 532
  • E0419 // merged into 531
  • E0420 // merged into 532
  • E0421 // merged into 531
  • E0427 // merged into 530
  • E0471 // constant evaluation error (in pattern)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment