You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bytes!(..).to_owned() does not work in statement position #8770
The expression bytes!("foo").to_owned() works when placed in an expression position, as in let x = bytes!("foo").to_owned(). However, it does not work in a statement position, as in just bytes!("foo").to_owned() by itself:
Activity
lilyball commentedon Aug 26, 2013
Looks like
env!()has the same problem. I'm guessing this is common to all normal syntax extensions.lilyball commentedon Aug 26, 2013
This affects macros as well
huonw commentedon Aug 26, 2013
Looks like a dup of #5941.
(foo!()).to_owned()should work.Auto merge of rust-lang#9132 - hellow554:maybe_trait_bound_on_type_re…
Merge rust-lang#8770