]> git.lizzy.rs Git - rust.git/commit
Bound Any with 'static
authorJonathan Reem <jonathan.reem@gmail.com>
Tue, 9 Sep 2014 04:05:32 +0000 (21:05 -0700)
committerJonathan Reem <jonathan.reem@gmail.com>
Wed, 1 Oct 2014 01:40:07 +0000 (18:40 -0700)
commit0cf60b6bb8fed2cad4407fdf86a49a7eebbd62e6
treeea8d20b6fd0209a001afbb19e87daec888b5c955
parent88d1a22f76a774b2df3c904ceb54c86e58a859c3
Bound Any with 'static

This bound is already implicit through the AnyPrivate trait,
but since it is not explicit, you still have to write Box<Any + 'static>,
even though Any can only be 'static.

Introducing the 'static bound here makes this bound explicit, making
Box<Any> legal.
src/libcore/any.rs