#![allow(dead_code, deprecated, unused_variables, unused_mut)] fn is_hello>(s: T) { assert_eq!("hello", s.as_ref()); } fn main() { let s = "hello"; is_hello(s); let s = "hello".to_string(); is_hello(s); }