about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-12-20 11:16:32 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-12-20 12:59:02 -0800
commita7710eff06d52b861c618e91a5c1f490f4796f4f (patch)
tree510834a3ea6139ff42a98db41b82ecc905a03727 /src/test/incremental/thinlto
parentdfa9948d76ecaa4bf7b03df668f1dde8884325b1 (diff)
parentf09e2cc7ed34ae1623c334df92981bc53a11a6ae (diff)
downloadrust-a7710eff06d52b861c618e91a5c1f490f4796f4f.tar.gz
rust-a7710eff06d52b861c618e91a5c1f490f4796f4f.zip
Rollup merge of #38315 - jonhoo:better-E0309, r=pnkfelix
Expand E0309 explanation with motivating example

I recently started reading @Gankro's "[Learning Rust With Entirely Too Many Linked Lists](http://cglab.ca/~abeinges/blah/too-many-lists/book/README.html)", and came across [a part](http://cglab.ca/~abeinges/blah/too-many-lists/book/second-iter.html) where he comes across `E0309`, and after showing `rustc --explain E0309` prompty says

> This is dumb. I think it's dumb. You have to do it.

Humor aside, I think this says something about the current explanation being somewhat lacking.

This patch introduces a motivating example saying why `T: 'a` is a necessary restriction. Hopefully, this will help new Rustaceans understand why leaving out the `'a` bound on `T` might lead to broken code.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions