From 23827bd5b9e0b52f5a1962d9ff325a47896eb7ab Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Thu, 10 Nov 2022 09:08:12 -0800 Subject: [PATCH] Fix trait_alias feature warning Summary: Resulting from updating to Rust 1.65.0 (D40923615 (https://github.com/facebookexperimental/rust-shed/commit/39f263299366cc732284171bf1ad5e39314a0f13)). Fixes: warning: trait aliases are experimental --> common/rust/shed/trait_alias/test/trait_alias_test.rs:19:1 | 19 | trait Both = One + Two; | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #41517 for more information = help: add `#![feature(trait_alias)]` to the crate attributes to enable = warning: unstable syntax can change at any point in the future, causing a hard error! = note: for more information, see issue #65860 warning: trait aliases are experimental --> common/rust/shed/trait_alias/test/trait_alias_test.rs:36:1 | 36 | trait GenericFn = Fn() -> T; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #41517 for more information = help: add `#![feature(trait_alias)]` to the crate attributes to enable = warning: unstable syntax can change at any point in the future, causing a hard error! = note: for more information, see issue #65860 warning: 2 warnings emitted Reviewed By: diliop Differential Revision: D41187344 fbshipit-source-id: f8e5b7eb6aa2097172d3d0ec7ce6e6a58193c349 --- shed/trait_alias/test/trait_alias_test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shed/trait_alias/test/trait_alias_test.rs b/shed/trait_alias/test/trait_alias_test.rs index 9e5418a7e..625b8660f 100644 --- a/shed/trait_alias/test/trait_alias_test.rs +++ b/shed/trait_alias/test/trait_alias_test.rs @@ -7,6 +7,8 @@ * of this source tree. */ +#![feature(trait_alias)] + trait One { fn one(&self) -> u32; }