@@ -334,7 +334,7 @@ impl<T: Copy> Clone for Cell<T> {
334334
335335#[ stable( feature = "rust1" , since = "1.0.0" ) ]
336336#[ rustc_const_unstable( feature = "const_default" , issue = "143894" ) ]
337- impl < T : ~ const Default > const Default for Cell < T > {
337+ impl <T : [ const ] Default > const Default for Cell < T > {
338338 /// Creates a `Cell<T>`, with the `Default` value for T.
339339 #[ inline ]
340340 fn default ( ) -> Cell < T > {
@@ -1325,7 +1325,7 @@ impl<T: Clone> Clone for RefCell<T> {
13251325
13261326#[ stable( feature = "rust1" , since = "1.0.0" ) ]
13271327#[ rustc_const_unstable( feature = "const_default" , issue = "143894" ) ]
1328- impl < T : ~ const Default > const Default for RefCell < T > {
1328+ impl <T : [ const ] Default > const Default for RefCell < T > {
13291329 /// Creates a `RefCell<T>`, with the `Default` value for T.
13301330 #[ inline ]
13311331 fn default ( ) -> RefCell < T > {
@@ -2333,7 +2333,7 @@ impl<T: ?Sized> UnsafeCell<T> {
23332333
23342334#[ stable( feature = "unsafe_cell_default" , since = "1.10.0" ) ]
23352335#[ rustc_const_unstable( feature = "const_default" , issue = "143894" ) ]
2336- impl < T : ~ const Default > const Default for UnsafeCell < T > {
2336+ impl <T : [ const ] Default > const Default for UnsafeCell < T > {
23372337 /// Creates an `UnsafeCell`, with the `Default` value for T.
23382338 fn default( ) -> UnsafeCell < T > {
23392339 UnsafeCell :: new ( Default :: default ( ) )
@@ -2438,7 +2438,7 @@ impl<T: ?Sized> SyncUnsafeCell<T> {
24382438
24392439#[ unstable( feature = "sync_unsafe_cell" , issue = "95439" ) ]
24402440#[ rustc_const_unstable( feature = "const_default" , issue = "143894" ) ]
2441- impl < T : ~ const Default > const Default for SyncUnsafeCell < T > {
2441+ impl <T : [ const ] Default > const Default for SyncUnsafeCell < T > {
24422442 /// Creates an `SyncUnsafeCell`, with the `Default` value for T.
24432443 fn default( ) -> SyncUnsafeCell < T > {
24442444 SyncUnsafeCell :: new ( Default :: default ( ) )
0 commit comments